Jump to content

DOM: why does "tagName" return uppercase?


FelixB
 Share

Recommended Posts

Hi,Why does the HTML DOM property "tagName" return the tag names in uppercase? The w3c recommends to use lower case within HTML documents... so why not returning the names as they are? thx!Felixfrom the specification:http://www.w3.org/TR/1998/REC-DOM-Level-1-...l-one-html.html2.5.3. Exposing Element Type Names (tagName)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".

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...