WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
19047
Selectors API querySelector won't match uppercase class names in quirks mode
https://bugs.webkit.org/show_bug.cgi?id=19047
Summary
Selectors API querySelector won't match uppercase class names in quirks mode
Lachlan Hunt
Reported
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.
Attachments
Quirk Mode - Test Case
(145 bytes, text/html)
2022-08-09 09:23 PDT
,
Ahmad Saleem
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Alex Russell
Comment 1
2009-03-05 10:34:56 PST
note, this also affects getElementsByClassName in quirks mode
David Smith
Comment 2
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
).
Ahmad Saleem
Comment 3
2022-08-09 09:23:43 PDT
Created
attachment 461503
[details]
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 "PASS" for the test case, I am going to mark this as "RESOLVED CONFIGURATION CHANGED" Even with above "Quirk Mode" test case, all browsers are showing "PASS". Thanks!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug