W3C home > Mailing lists > Public > public-html@w3.org > July 2008

[Bug 5898] New: Don't convert attributes to lowercase for localName/nodeName

From: <bugzilla@wiggum.w3.org>
Date: Fri, 25 Jul 2008 11:56:18 +0000
To: public-html@w3.org
Message-ID: <bug-5898-2495@http.www.w3.org/Bugs/Public/>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5898

           Summary: Don't convert attributes to lowercase for
                    localName/nodeName
           Product: HTML WG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Spec bugs
        AssignedTo: dave.null@w3.org
        ReportedBy: simonp@opera.com
         QAContact: public-html-bugzilla@w3.org
                CC: ian@hixie.ch, mike@w3.org, public-html@w3.org


The spec says:

   Element.tagName, Node.nodeName, and Node.localName 

      These attributes must return tag names converted to uppercase and
      attribute names converted to lowercase, regardless of the case with
      which they were created.

I can understand that elements need to be converted to uppercase, but can't
attribute names be left alone? At least Firefox, Opera and Safari do so:

http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cscript%3Edocument.documentElement.setAttributeNS(null%2C%20%27Foo%27%2C%20%27bar%27)%3B%0Adocument.write(document.documentElement.attributes[0].nodeName)%3C%2Fscript%3E


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Friday, 25 July 2008 11:56:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:19 GMT