This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
3.3 APIs in HTML documents states Element.tagName and Node.nodeName These attributes must return element names converted to ASCII _uppercase_, regardless of the case with which they were created. and then The canonical form of HTML markup is all-lowercase; also in section 3.3 APIs in HTML documents when looking at HTML elements, the argument must first be converted to ASCII lowercase This seems inconsistent. Should the first _uppercase_ instead be lowercase?
The spec text is correct here. The DOM-internal form is lower case. Hence, the setter lower cases. For legacy reasons, .tagName and .nodeName need to return in upper case.
We should probably add a note to make that clear.
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document: http://dev.w3.org/html5/decision-policy/decision-policy.html Status: Did Not Understand Request Change Description: no spec change Rationale: I would be happy to add a note explaining this, but it's not clear exactly where the note should go or what it should say. Don, could you clarify where in the spec it was you were reading when you first thought there was a mistake?