M
miketaylr
Flightless Bird
Hello, I'm not sure exactly where to submit a bug report--I couldn't find
anywhere on the IE Feedback page
(https://connect.microsoft.com/IE/Feedback?wa=wsignin1.0). If this is the
wrong place, please forgive me (and point me in the right direction!)
According to the W3C spec, document.querySelectorAll('[selected=selected]')
should return the same NodeList as document.querySelectorAll('[selected]'),
however this is currently not the case.
document.querySelectorAll('[selected]') fails in all cases that I've tested.
Here is a simplified test case: http://miketaylr.com/test/ie8qsa.html, with
just one <select> element that contains an <option selected=selected>
element, with a few more plain <options>.
Furthermore, from the spec, "If the user agent also supports some level of
CSS, the implementation should support the same set of selectors in both
these APIs and CSS."
IE8 clearly supports the [attr] {} selector syntax, as can be seen in the
test case, with the [multiple] {font-weight:bold} style.
This is a major bug, especially for JavaScript libraries such as jQuery,
Dojo, and Prototype that rely on IE8's QSA implementation for their selector
engines.
----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.
http://www.microsoft.com/communitie...&dg=microsoft.public.internetexplorer.general
anywhere on the IE Feedback page
(https://connect.microsoft.com/IE/Feedback?wa=wsignin1.0). If this is the
wrong place, please forgive me (and point me in the right direction!)
According to the W3C spec, document.querySelectorAll('[selected=selected]')
should return the same NodeList as document.querySelectorAll('[selected]'),
however this is currently not the case.
document.querySelectorAll('[selected]') fails in all cases that I've tested.
Here is a simplified test case: http://miketaylr.com/test/ie8qsa.html, with
just one <select> element that contains an <option selected=selected>
element, with a few more plain <options>.
Furthermore, from the spec, "If the user agent also supports some level of
CSS, the implementation should support the same set of selectors in both
these APIs and CSS."
IE8 clearly supports the [attr] {} selector syntax, as can be seen in the
test case, with the [multiple] {font-weight:bold} style.
This is a major bug, especially for JavaScript libraries such as jQuery,
Dojo, and Prototype that rely on IE8's QSA implementation for their selector
engines.
----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.
http://www.microsoft.com/communitie...&dg=microsoft.public.internetexplorer.general