Skip the root node in querySelectorAll

This accounts for https://github.com/whatwg/dom/issues/263.
This commit is contained in:
Anthony Ramine 2016-07-04 12:35:19 +02:00
parent 110fd68610
commit 345eee92e8
4 changed files with 5 additions and 14 deletions

View file

@ -33,7 +33,7 @@
assert_equals(nodelist.length, 3);
nodelist = div.querySelectorAll("div:nth-of-type(1)");
assert_equals(nodelist.item(0), div);
assert_equals(nodelist.item(0), div.firstElementChild);
}, "Element");
test(function() {