<?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>23742</bug_id>
          
          <creation_ts>2013-11-06 16:24:00 +0000</creation_ts>
          <short_desc>Element tag name matching should not be fully case insensitive</short_desc>
          <delta_ts>2013-11-08 21:05:28 +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>FIXED</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>bzbarsky</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>95872</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-11-06 16:24:00 +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:
Element tag name matching should not be fully case insensitive

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>95873</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-11-06 16:30:26 +0000</bug_when>
    <thetext>I thought we had reached consensus that what we want is for HTML elements in HTML documents to compare the ascii-lowercased selector to the localName of the element and for others to just compare to the localName, both compares being case-sensitive.  That way you can use interned strings in selector matching for better performance.  But the spec text doesn&apos;t seem to reflect that.

A testcase is at http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2623 and shows green text in Blink, Gecko, and Presto.  It shows red in Trident, but Trident has an incorrect localName (&quot;div&quot; instead of &quot;DIV&quot;) in this case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95880</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-11-06 19:36:44 +0000</bug_when>
    <thetext>I don&apos;t recall such a decision, but it seems reasonable, if somewhat unintuitive.

Done for element names (see checkin below).

It looks like the same applies to attribute names; should I do that too?
   http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2623</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95881</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-11-06 19:37:06 +0000</bug_when>
    <thetext>Oops, wrong link, sorry:
   http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2624</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95884</commentid>
    <comment_count>4</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-11-06 19:52:58 +0000</bug_when>
    <thetext>Yeah, I think attribute names should work similarly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95885</commentid>
    <comment_count>5</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-11-06 19:53:09 +0000</bug_when>
    <thetext>And thank you!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95995</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-11-07 22:40:24 +0000</bug_when>
    <thetext>Ok, the attribute selector equivalent text is a bit convoluted, so don&apos;t hesitate to reopen the bug if I screwed it up some how.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95996</commentid>
    <comment_count>7</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-11-07 22:42:02 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8261.
Check-in comment: Match reality better in terms of selector case-sensitivity for attributes as well
http://html5.org/tools/web-apps-tracker?from=8260&amp;to=8261</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96040</commentid>
    <comment_count>8</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-11-08 21:05:28 +0000</bug_when>
    <thetext>seems reasonable at first glance.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>