Тема: tagName upperCase
Показать сообщение отдельно
  #2 (permalink)  
Старый 24.09.2009, 13:34
Аватар для Riim
Рассеянный профессор
Отправить личное сообщение для Riim Посмотреть профиль Найти все сообщения от Riim
 
Регистрация: 06.04.2009
Сообщений: 2,379

Что-то вроде нашел:

http://www.w3.org/TR/2000/WD-DOM-Lev...-one-core.html
Цитата:
tagName has the value "elementExample". Note that this is case-preserving in XML, as are all of the operations of the DOM. The HTML DOM returns the tagName of an HTML element in the canonical uppercase form, regardless of the case in the source HTML document.

http://www.w3.org/TR/2000/CR-DOM-Lev...0307/html.html
Цитата:
The element type names exposed through a property are in uppercase. For example, the body element type name is exposed through the "tagName" property as "BODY".

Все же непонятно, почему часто переводят в какой-то конкретный регистр. В том же PrototypeJs и MooTools вовсю так делают.

Последний раз редактировалось Riim, 24.09.2009 в 13:45.
Ответить с цитированием