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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>19047</bug_id>
          
          <creation_ts>2008-05-14 10:17:25 -0700</creation_ts>
          <short_desc>Selectors API querySelector won&apos;t match uppercase class names in quirks mode</short_desc>
          <delta_ts>2022-08-09 09:24:09 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Lachlan Hunt">lachlan.hunt</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>alex</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>catfish.man</cc>
    
    <cc>rniwa</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80366</commentid>
    <comment_count>0</comment_count>
    <who name="Lachlan Hunt">lachlan.hunt</who>
    <bug_when>2008-05-14 10:17:25 -0700</bug_when>
    <thetext>The Selectors API querySelector and querySelectorAll methods won&apos;t match uppercase class names in quirks mode.

e.g. Try running this script in quirks mode.

&lt;p class=&quot;FOO&quot;&gt;&lt;/p&gt;
&lt;script&gt;
var p = document.querySelector(&quot;.FOO&quot;);
document.write(p ? &quot;PASS&quot; : &quot;FAIL&quot;);
&lt;/script&gt;

The same script works correctly in standards mode.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112397</commentid>
    <comment_count>1</comment_count>
    <who name="Alex Russell">alex</who>
    <bug_when>2009-03-05 10:34:56 -0800</bug_when>
    <thetext>note, this also affects getElementsByClassName in quirks mode</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112696</commentid>
    <comment_count>2</comment_count>
    <who name="David Smith">catfish.man</who>
    <bug_when>2009-03-06 21:45:02 -0800</bug_when>
    <thetext>I can&apos;t reproduce this (I pasted the provided testcase into a document and loaded it in safari 4 beta, and it said PASS, same with r40738).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1889992</commentid>
    <comment_count>3</comment_count>
      <attachid>461503</attachid>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-09 09:23:43 -0700</bug_when>
    <thetext>Created attachment 461503
Quirk Mode - Test Case

I changed the test case from Comment 0 in JSfiddle below:

Link - https://jsfiddle.net/6r9odj5x/show

All browsers (Chrome Canary 106, Firefox Nightly 105 and Safari 15.6 on macOS 12.5) are saying &quot;PASS&quot; for the test case, I am going to mark this as &quot;RESOLVED CONFIGURATION CHANGED&quot;

Even with above &quot;Quirk Mode&quot; test case, all browsers are showing &quot;PASS&quot;. Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>461503</attachid>
            <date>2022-08-09 09:23:43 -0700</date>
            <delta_ts>2022-08-09 09:23:43 -0700</delta_ts>
            <desc>Quirk Mode - Test Case</desc>
            <filename>Quirk Mode - Webkit Bug - 19047.html</filename>
            <type>text/html</type>
            <size>145</size>
            <attacher name="Ahmad Saleem">ahmad.saleem792</attacher>
            
              <data encoding="base64">PGh0bWw+Cjxib2R5Pgo8cCBjbGFzcz0iRk9PIj48L3A+CjxzY3JpcHQ+CnZhciBwID0gZG9jdW1l
bnQucXVlcnlTZWxlY3RvcigiLkZPTyIpOwpkb2N1bWVudC53cml0ZShwID8gIlBBU1MiIDogIkZB
SUwiKTsKPC9zY3JpcHQ+CjwvYm9keT4KPC9odG1sPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>