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 24005 - Attribute values can't always be matched case-sensitively
Summary: Attribute values can't always be matched case-sensitively
Status: RESOLVED MOVED
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:
: 24004 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-12-05 15:08 UTC by contributor
Modified: 2015-09-01 13:20 UTC (History)
7 users (show)

See Also:


Attachments

Description contributor 2013-12-05 15:08:35 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/selectors.html
Multipage: http://www.whatwg.org/C#case-sensitivity
Complete: http://www.whatwg.org/c#case-sensitivity
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
Attribute values can't always be matched case-sensitively

Posted from: 173.48.23.63 by bzbarsky@mit.edu
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:28.0) Gecko/20100101 Firefox/28.0
Comment 1 Boris Zbarsky 2013-12-05 15:10:50 UTC
Consider this simple testcase:

<!DOCTYPE html>
<style>
  input[type="radio"] { outline: 20px solid green; }
</style>
<input type="RADIO">
<script>
document.write(document.querySelector("input").getAttribute("type"));
</script>

This shows the green outline in every UA I've tried (Presto, Blink, WebKit, Gecko, recent Trident).

But per spec the selector should not match, since the spec required case-sensitive matching of attribute values...  I will argue the spec is what should change here.
Comment 2 Boris Zbarsky 2013-12-05 15:15:15 UTC
*** Bug 24004 has been marked as a duplicate of this bug. ***
Comment 3 Ian 'Hixie' Hickson 2013-12-05 18:20:34 UTC
zcorpan requested that we drop this in bug 13757.
Comment 4 Boris Zbarsky 2013-12-05 19:02:14 UTC
Is any UA planning to actually implement zcorpan's proposed change?
Comment 5 Anne 2013-12-09 14:50:14 UTC
Would it not be much better not have a magic list of attributes in our matching code? We did discuss this with dbaron and others at the time.
Comment 6 Boris Zbarsky 2013-12-09 14:55:16 UTC
Maybe.  Please show me a UA that's willing to change to what the spec currently says.
Comment 7 Boris Zbarsky 2013-12-09 14:58:10 UTC
And implement it in all modes, to boot.  Unless we want to have a quirk for this.
Comment 8 Anne 2013-12-09 15:01:24 UTC
I did not intend for this to be a quirk.
Comment 9 Simon Pieters 2013-12-09 19:22:07 UTC
I've filed https://code.google.com/p/chromium/issues/detail?id=327060
Comment 10 Ian 'Hixie' Hickson 2014-01-15 22:57:55 UTC
I guess the question is, how long should we wait before we give up and resurrect the old spec text here?
Comment 11 Ian 'Hixie' Hickson 2014-04-09 22:15:19 UTC
Looks like we'll have data on this momentarily now.
Comment 12 Simon Pieters 2014-04-28 08:37:20 UTC
Unfortunately the use counter turned out to be triggered by the user agent stylesheet. Fix on the way; give it some more time.
Comment 13 Ian 'Hixie' Hickson 2014-06-05 19:58:56 UTC
Any idea what the ETA is for the use counter to update to reporting the new data?
Comment 14 Simon Pieters 2014-06-11 09:10:49 UTC
It seems the fix got stuck in review and the developer got swamped by other things.

fs will carry on with it though, so probably the fix will land soonish and then we'll have to wait for the new use counter data.
Comment 15 Ian 'Hixie' Hickson 2014-08-28 18:48:11 UTC
fs: any news here?
Comment 16 Simon Pieters 2014-08-29 11:51:46 UTC
The fix https://codereview.chromium.org/417353004 landed 2014-08-01

The use counter is http://www.chromestatus.com/metrics/feature/timeline/popularity/244 but we need to wait and see what it's like when the fix has been in stable for a few weeks.
Comment 17 Ian 'Hixie' Hickson 2014-09-18 17:25:43 UTC
Looks like the fix either didn't do a complete job of fixing it, or there's more of this out there than we realised. I would have thought that exluding UA style sheets would have brought this down dramatically.
Comment 18 Simon Pieters 2014-09-19 15:22:20 UTC
No, it hasn't reached stable yet. It should be in 38.
Comment 19 Ian 'Hixie' Hickson 2014-09-19 17:25:18 UTC
Oh, ok. What happened in August then? Is that just the drop from dev users?
Comment 20 Fredrik S 2014-09-22 09:18:07 UTC
(In reply to Ian 'Hixie' Hickson from comment #19)
> Oh, ok. What happened in August then? Is that just the drop from dev users?

Yes.
Comment 21 Ian 'Hixie' Hickson 2014-09-22 16:52:37 UTC
Oh wow, ok. That's a huge drop already then. Looking forward to the data!
Comment 22 Simon Pieters 2014-12-15 12:45:17 UTC
It seems it's around 0.1% now. Probably this is too high for it to be worth it.
Comment 23 Ian 'Hixie' Hickson 2014-12-19 22:57:38 UTC
So we should resurrect the old text?
Comment 24 Simon Pieters 2015-01-05 09:51:00 UTC
Yes.
Comment 25 Ian 'Hixie' Hickson 2015-01-06 22:46:30 UTC
Revert https://html5.org/r/6695
Comment 26 Anne 2015-09-01 13:20:01 UTC
https://github.com/whatwg/html/pull/74