The CSS parser should know about HTML5 attributes that need to be case-insensitive. http://mxr.mozilla.org/mozilla-central/source/layout/style/nsCSSParser.cpp#2916 http://www.whatwg.org/specs/web-apps/current-work/#interaction-with-css http://lists.w3.org/Archives/Public/public-html/2008Jan/0043.html
Based on those URLs, it seems like nobody has yet compiled the list of attributes. Is that correct?
It seems that no one has yet compiled a list. The list should be compilable from the HTML5 spec, but perhaps it's best to wait for Hixie to do it.
Hixie has compiled the list and it matches Mozilla's, so AFAICT nothing has to be changed. (Apart from the comment, possibly.)  http://www.whatwg.org/specs/web-apps/current-work/#selectors  http://mxr.mozilla.org/mozilla-central/source/layout/style/nsCSSParser.cpp#2916
Note that HTML currently requires <ol type> to be treated case-sensitively, but no browser does that. Is there any chance we can just remove this list and treat all attributes as case-sensitive regardless of markup language? I can get it done in Opera.
All browsers distinguish ol type=i and ol type=I, afaik. Open a new bug (and a spec bug) to make them all case-sensitive, maybe?
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → WORKSFORME
Version: Other Branch → Trunk
I filed 672171.
I meant I filed bug 672171, sorry.
You need to log in before you can comment on or make changes to this bug.