mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Skip the root node in querySelectorAll
This accounts for https://github.com/whatwg/dom/issues/263.
This commit is contained in:
parent
110fd68610
commit
345eee92e8
4 changed files with 5 additions and 14 deletions
|
@ -1,11 +1,5 @@
|
|||
[ParentNode-querySelector-All-xht.xht]
|
||||
type: testharness
|
||||
[Detached Element.querySelectorAll tree order]
|
||||
expected: FAIL
|
||||
|
||||
[In-document Element.querySelectorAll tree order]
|
||||
expected: FAIL
|
||||
|
||||
[Document.querySelectorAll: Attribute whitespace-separated list selector, not matching class attribute with empty value: #attr-whitespace [class~=""\]]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,11 +1,5 @@
|
|||
[ParentNode-querySelector-All.html]
|
||||
type: testharness
|
||||
[Detached Element.querySelectorAll tree order]
|
||||
expected: FAIL
|
||||
|
||||
[In-document Element.querySelectorAll tree order]
|
||||
expected: FAIL
|
||||
|
||||
[Document.querySelectorAll: Attribute whitespace-separated list selector, not matching class attribute with empty value: #attr-whitespace [class~=""\]]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue