[Bug 23781] New: id and class should be case-insensitive in quirks

https://www.w3.org/Bugs/Public/show_bug.cgi?id=23781

            Bug ID: 23781
           Summary: id and class should be case-insensitive in quirks
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DOM
          Assignee: annevk@annevk.nl
          Reporter: simonp@opera.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, www-dom@w3.org

http://dom.spec.whatwg.org/#concept-id

[[
unique identifier (ID)
]]

HTML says

[[
The unique identifier of HTML elements in documents that are in quirks mode
must be treated as ASCII case-insensitive for the purposes of selector
matching.

Classes from the class attribute of HTML elements in documents that are in
quirks mode must be treated as ASCII case-insensitive for the purposes of
selector matching.
]]
http://www.whatwg.org/specs/web-apps/current-work/multipage/selectors.html#case-sensitivity

But this should apply to all elements. It applies to SVG too in browsers and
also elements in unknown namespace (in Blink at least, Gecko appears to not
support selecting such elements with id selector). Since it applies to all
elements it might be good to move to DOM (or be directly in Selectors?).

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2627 (control)
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2628

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Saturday, 9 November 2013 02:16:42 UTC