Bug 19047 - Selectors API querySelector won't match uppercase class names in quirks mode
Summary: Selectors API querySelector won't match uppercase class names in quirks mode
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Macintosh OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-14 10:17 PDT by Lachlan Hunt
Modified: 2009-03-06 21:45 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>
<script>
var p = document.querySelector(".FOO");
document.write(p ? "PASS" : "FAIL");
</script>

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).