<?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>16703</bug_id>
          
          <creation_ts>2008-01-01 22:08:31 -0800</creation_ts>
          <short_desc>Acid3 expects [class=foo] selectors to be case sensitive</short_desc>
          <delta_ts>2008-01-01 22:09:54 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>15470</dup_id>
          
          <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>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>65981</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2008-01-01 22:08:31 -0800</bug_when>
    <thetext>Acid3 expects [class=foo] selectors to be case sensitive

IIRC we have code which makes attribute selectors case insensitive for HTML, excepting special cases (which I would have though have included class).  I might have actually even worked on such a patch... I feel like I did.  For some css3.info selectors test, iirc.

      selectorTest(function (doc, add, expect) {
        builder(doc);
        p.className = &quot;selectorPingTest&quot;;
        var good = add(&quot;[class=selectorPingTest]&quot;);
        add(&quot;[class=SelectorPingTest]&quot;);
        add(&quot;[class=selectorpingtest]&quot;);
        expect(doc.body, 0, &quot;failure 3&quot;);
        expect(p, good, &quot;class attribute matching failed&quot;);
      });

That&apos;s the test case.

  function selectorTest(tester) {
    var iframe = document.getElementById(&quot;selectors&quot;);
    var doc = iframe.contentDocument;
    for (var i = doc.documentElement.childNodes.length-1; i &gt;= 0; i -= 1)
      doc.documentElement.removeChild(doc.documentElement.childNodes[i]);
    doc.documentElement.appendChild(doc.createElement(&apos;head&apos;));
    doc.documentElement.firstChild.appendChild(doc.createElement(&apos;title&apos;));
    doc.documentElement.appendChild(doc.createElement(&apos;body&apos;));
    var style = doc.createElement(&apos;style&apos;);
    style.appendChild(doc.createTextNode(&quot;* { z-index: 0; position: absolute; }\n&quot;));
    doc.documentElement.firstChild.appendChild(style);
    var ruleCount = 0;
    tester(doc, function (selector) {
        ruleCount += 1;
        style.appendChild(doc.createTextNode(selector + &quot; { z-index: &quot; + ruleCount + &quot;; }\n&quot;));
        return ruleCount;
      }, function(node, rule, message) {
        var value = doc.defaultView.getComputedStyle(node, &quot;&quot;).zIndex;
        assert(value != &apos;auto&apos;, &quot;underlying problems prevent this test from running properly&quot;);
        assert(value == rule, &quot;expected &quot; + rule + &quot;, got &quot; + value + &quot; - &quot; + message);
    });
  }

is the interesting support function.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65982</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2008-01-01 22:09:54 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 15470 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>