You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Error: Failed to execute 'querySelectorAll' on 'Element': '[id='introduction'] h1:first,[id='introduction'] h2:first,[id='introduction'] h3:first,[id='introduction'] h4:first,[id='introduction'] h5:first,[id='introduction'] h6:first' is not a valid selector.
at Error (native)
at Function.ot (http://pandora.aptest.com/respec/js/jquery.js:4:9400)
at x.fn.extend.find (http://pandora.aptest.com/respec/js/jquery.js:5:15275)
at Object.run (http://pandora.aptest.com/respec/js/core/structure.js:87:34)
at pipeline (http://pandora.aptest.com/respec/js/core/base-runner.js:113:40)
at Object.run (http://pandora.aptest.com/respec/js/core/fix-headers.js:22:17)
at pipeline (http://pandora.aptest.com/respec/js/core/base-runner.js:113:40)
at Object.run (http://pandora.aptest.com/respec/js/core/dfn.js:33:17)
at pipeline (http://pandora.aptest.com/respec/js/core/base-runner.js:113:40)
at run.finish (http://pandora.aptest.com/respec/js/core/webidl-oldschool.js:1400:25)"
It is probably a bug in jQuery, really. But regardless, it is something we should fix. I believe that using :first-child will work instead of :first
The text was updated successfully, but these errors were encountered:
No.... I mean, you need to turn on the "pause on exceptions" in order for it to fail. My guess is that the exception gets thrown, and then jQuery handles it internally because it fails natively.
There's another exception that gets thrown if you happen to have a selector special character in the contents of a header that then gets turned into an ID.
Actually, while it does throw an exception, it obviously is working so it is probably a jQuery artifact where it is trying to use the native implementation first then failing over to the JS implementation of the selector logic. I will close this.
In the core/fix-headers, core/structure, and w3c/informative a construct like this is used:
var$secs = $ ("section:not(.introductory)", doc)
.find("h1:first, h2:first, h3:first, h4:first, h5:first, h6:first");
Chrome is throwing an exception on this:
It is probably a bug in jQuery, really. But regardless, it is something we should fix. I believe that using :first-child will work instead of :first
The text was updated successfully, but these errors were encountered: