Bug 19047

Summary: Selectors API querySelector won't match uppercase class names in quirks mode
Product: WebKit Reporter: Lachlan Hunt <lachlan.hunt>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: UNCONFIRMED ---    
Severity: Normal CC: alex, catfish.man, sam
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Macintosh   
OS: OS X 10.5   

Description Lachlan Hunt 2008-05-14 10:17:25 PDT
The Selectors API querySelector and querySelectorAll methods won't match uppercase class names in quirks mode.

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

<p class="FOO"></p>
var p = document.querySelector(".FOO");
document.write(p ? "PASS" : "FAIL");

The same script works correctly in standards mode.
Comment 1 Alex Russell 2009-03-05 10:34:56 PST
note, this also affects getElementsByClassName in quirks mode
Comment 2 David Smith 2009-03-06 21:45:02 PST
I can'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).