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

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 the QA contact for the bug.

Received on Friday, 25 July 2008 11:56:56 UTC