This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 20630 - Need to define case-sensitivity of CSS attribute selector value matching
Summary: Need to define case-sensitivity of CSS attribute selector value matching
Status: RESOLVED WORKSFORME
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-10 07:46 UTC by contributor
Modified: 2013-01-11 20:41 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2013-01-10 07:46:15 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html
Multipage: http://www.whatwg.org/C#introduction-13
Complete: http://www.whatwg.org/c#introduction-13

Comment:
Need to define case-sensitivity of CSS attribute selector value matching

Posted from: 173.48.81.109 by bzbarsky@mit.edu
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20130108 Firefox/21.0
Comment 1 Boris Zbarsky 2013-01-10 07:47:29 UTC
In particular, CSS says that whether [foo=bar] matches <div foo="BAR"> is defined by the document language.

Note that UAs may not be all that consistent here.  What Gecko does is case-sensitive matching except for a whitelist of attributes whose values are explicitly defined as case-insensitive in HTML4, I believe.  See http://hg.mozilla.org/mozilla-central/file/f60b87eed1ac/layout/style/nsCSSParser.cpp#l3338
Comment 2 Ian 'Hixie' Hickson 2013-01-10 22:42:19 UTC
Is this insufficient?:
   http://whatwg.org/html/#case-sensitivity
Comment 3 Boris Zbarsky 2013-01-10 22:44:33 UTC
Hmm.  I totally failed to find that for some reason, even after searching the single-page version of the spec for "Selector"....
Comment 4 Ian 'Hixie' Hickson 2013-01-11 20:41:55 UTC
If there's anything I can do to make that more discoverable, please don't hesitate to file a new bug (or reopen this one).