<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>24005</bug_id>
          
          <creation_ts>2013-12-05 15:08:35 +0000</creation_ts>
          <short_desc>Attribute values can&apos;t always be matched case-sensitively</short_desc>
          <delta_ts>2015-09-01 13:20:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#case-sensitivity</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>fs</cc>
    
    <cc>ian</cc>
    
    <cc>jackalmage</cc>
    
    <cc>mike</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>97172</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-12-05 15:08:35 +0000</bug_when>
    <thetext>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&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97174</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-12-05 15:10:50 +0000</bug_when>
    <thetext>Consider this simple testcase:

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

This shows the green outline in every UA I&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97176</commentid>
    <comment_count>2</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-12-05 15:15:15 +0000</bug_when>
    <thetext>*** Bug 24004 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97191</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-12-05 18:20:34 +0000</bug_when>
    <thetext>zcorpan requested that we drop this in bug 13757.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97203</commentid>
    <comment_count>4</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-12-05 19:02:14 +0000</bug_when>
    <thetext>Is any UA planning to actually implement zcorpan&apos;s proposed change?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97327</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-12-09 14:50:14 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97329</commentid>
    <comment_count>6</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-12-09 14:55:16 +0000</bug_when>
    <thetext>Maybe.  Please show me a UA that&apos;s willing to change to what the spec currently says.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97330</commentid>
    <comment_count>7</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-12-09 14:58:10 +0000</bug_when>
    <thetext>And implement it in all modes, to boot.  Unless we want to have a quirk for this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97331</commentid>
    <comment_count>8</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-12-09 15:01:24 +0000</bug_when>
    <thetext>I did not intend for this to be a quirk.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97346</commentid>
    <comment_count>9</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2013-12-09 19:22:07 +0000</bug_when>
    <thetext>I&apos;ve filed https://code.google.com/p/chromium/issues/detail?id=327060</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98538</commentid>
    <comment_count>10</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-01-15 22:57:55 +0000</bug_when>
    <thetext>I guess the question is, how long should we wait before we give up and resurrect the old spec text here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103643</commentid>
    <comment_count>11</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-04-09 22:15:19 +0000</bug_when>
    <thetext>Looks like we&apos;ll have data on this momentarily now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104533</commentid>
    <comment_count>12</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-04-28 08:37:20 +0000</bug_when>
    <thetext>Unfortunately the use counter turned out to be triggered by the user agent stylesheet. Fix on the way; give it some more time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107395</commentid>
    <comment_count>13</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-06-05 19:58:56 +0000</bug_when>
    <thetext>Any idea what the ETA is for the use counter to update to reporting the new data?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107641</commentid>
    <comment_count>14</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-06-11 09:10:49 +0000</bug_when>
    <thetext>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&apos;ll have to wait for the new use counter data.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110724</commentid>
    <comment_count>15</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-08-28 18:48:11 +0000</bug_when>
    <thetext>fs: any news here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110763</commentid>
    <comment_count>16</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-08-29 11:51:46 +0000</bug_when>
    <thetext>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&apos;s like when the fix has been in stable for a few weeks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111753</commentid>
    <comment_count>17</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-18 17:25:43 +0000</bug_when>
    <thetext>Looks like the fix either didn&apos;t do a complete job of fixing it, or there&apos;s more of this out there than we realised. I would have thought that exluding UA style sheets would have brought this down dramatically.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111806</commentid>
    <comment_count>18</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-09-19 15:22:20 +0000</bug_when>
    <thetext>No, it hasn&apos;t reached stable yet. It should be in 38.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111811</commentid>
    <comment_count>19</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-19 17:25:18 +0000</bug_when>
    <thetext>Oh, ok. What happened in August then? Is that just the drop from dev users?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111908</commentid>
    <comment_count>20</comment_count>
    <who name="Fredrik S">fs</who>
    <bug_when>2014-09-22 09:18:07 +0000</bug_when>
    <thetext>(In reply to Ian &apos;Hixie&apos; Hickson from comment #19)
&gt; Oh, ok. What happened in August then? Is that just the drop from dev users?

Yes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111932</commentid>
    <comment_count>21</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-22 16:52:37 +0000</bug_when>
    <thetext>Oh wow, ok. That&apos;s a huge drop already then. Looking forward to the data!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116343</commentid>
    <comment_count>22</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-12-15 12:45:17 +0000</bug_when>
    <thetext>It seems it&apos;s around 0.1% now. Probably this is too high for it to be worth it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116580</commentid>
    <comment_count>23</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-12-19 22:57:38 +0000</bug_when>
    <thetext>So we should resurrect the old text?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116781</commentid>
    <comment_count>24</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2015-01-05 09:51:00 +0000</bug_when>
    <thetext>Yes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116852</commentid>
    <comment_count>25</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2015-01-06 22:46:30 +0000</bug_when>
    <thetext>Revert https://html5.org/r/6695</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122973</commentid>
    <comment_count>26</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-09-01 13:20:01 +0000</bug_when>
    <thetext>https://github.com/whatwg/html/pull/74</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>