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
vardomino=require('domino'),window,document,heading;window=domino.createWindow("<h1>First</h1><h1>Second</h1>");document=window.document;heading=document.body.querySelector('h1');// Expect 0, result 1console.log(heading.querySelectorAll('h1').length);
Looks like QSA is getting run on document.body instead of heading. This is with Node 0.10.5
The text was updated successfully, but these errors were encountered:
The upstream Element.nextElement(root) method was failing when root had
no children -- it was returning root's siblings, even though it was supposed
to restrict itself to root's descendants.
This caused Element.getElementsByTagName() and Element.querySelectorAll()
(and other related methods) to return incorrect results when invoked on
elements with no children.
Closes gh #32, gh #31.
Looks like QSA is getting run on
document.body
instead ofheading
. This is with Node 0.10.5The text was updated successfully, but these errors were encountered: