FelixB Posted January 4, 2007 Share Posted January 4, 2007 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 More sharing options...
jesh Posted January 4, 2007 Share Posted January 4, 2007 Maybe it's because that standard is based on HTML 4.0 rather than XHTML? I haven't ever used tagName so I won't be of much help. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now