diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index c9e78200c99..419909fa11e 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -812,18 +812,17 @@ impl Node { Err(()) => Err(Syntax), // Step 3. Ok(ref selectors) => { - let root = self.ancestors().last(); - let root = root.r().unwrap_or(self.clone()); - Ok(root.traverse_preorder().filter_map(ElementCast::to_root).find(|element| { + Ok(self.traverse_preorder().filter_map(ElementCast::to_root).find(|element| { matches(selectors, element, None) })) } } } + /// https://dom.spec.whatwg.org/#scope-match-a-selectors-string /// Get an iterator over all nodes which match a set of selectors - /// Be careful not to do anything which may manipulate the DOM tree whilst iterating, otherwise - /// the iterator may be invalidated + /// Be careful not to do anything which may manipulate the DOM tree + /// whilst iterating, otherwise the iterator may be invalidated. #[allow(unsafe_code)] pub unsafe fn query_selector_iter(&self, selectors: DOMString) -> Fallible { @@ -833,9 +832,7 @@ impl Node { Err(()) => Err(Syntax), // Step 3. Ok(selectors) => { - let root = self.ancestors().last(); - let root = root.r().unwrap_or(self); - Ok(QuerySelectorIterator::new(root.traverse_preorder(), selectors)) + Ok(QuerySelectorIterator::new(self.traverse_preorder(), selectors)) } } } diff --git a/tests/wpt/metadata/dom/nodes/ParentNode-querySelector-All.html.ini b/tests/wpt/metadata/dom/nodes/ParentNode-querySelector-All.html.ini index 8a083c760ac..15b76b64b57 100644 --- a/tests/wpt/metadata/dom/nodes/ParentNode-querySelector-All.html.ini +++ b/tests/wpt/metadata/dom/nodes/ParentNode-querySelector-All.html.ini @@ -210,276 +210,18 @@ [Fragment.querySelector: ::first-letter pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-letter] expected: FAIL - [In-document Element.querySelectorAll: Type selector, matching html element: html] - expected: FAIL - - [In-document Element.querySelector: Type selector, matching html element: html] - expected: FAIL - - [In-document Element.querySelectorAll: Type selector, matching body element: body] - expected: FAIL - - [In-document Element.querySelector: Type selector, matching body element: body] - expected: FAIL - - [In-document Element.querySelectorAll: Universal selector, matching all children of element with specified ID: #universal>*] - expected: FAIL - - [In-document Element.querySelectorAll: Universal selector, matching all grandchildren of element with specified ID: #universal>*>*] - expected: FAIL - - [In-document Element.querySelectorAll: Universal selector, matching all descendants of element with specified ID: #universal *] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute presence selector, matching align attribute with value: .attr-presence-div1[align\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute presence selector, matching align attribute with empty value: .attr-presence-div2[align\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute presence selector, matching title attribute, case insensitivity: #attr-presence [TiTlE\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute presence selector, matching custom data-* attribute: [data-attr-presence\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute presence selector, matching attribute with non-ASCII characters: ul[data-中文\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute presence selector, matching option with selected attribute: #attr-presence-select2 option[selected\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute presence selector, matching multiple options with selected attributes: #attr-presence-select3 option[selected\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute value selector, matching align attribute with value: #attr-value [align="center"\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute value selector, matching align attribute with empty value: #attr-value [align=""\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute value selector, matching custom data-* attribute with unicode escaped value: [data-attr-value="\\e9"\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute value selector, matching custom data-* attribute with escaped character: [data-attr-value_foo="\\e9"\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute value selector with single-quoted value, matching multiple inputs with type attributes: #attr-value input[type='hidden'\],#attr-value input[type='radio'\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute value selector with double-quoted value, matching multiple inputs with type attributes: #attr-value input[type="hidden"\],#attr-value input[type='radio'\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute value selector with unquoted value, matching multiple inputs with type attributes: #attr-value input[type=hidden\],#attr-value input[type=radio\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute value selector, matching attribute with value using non-ASCII characters: [data-attr-value=中文\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute whitespace-separated list selector, matching class attribute with value: #attr-whitespace [class~="div1"\]] - expected: FAIL - [In-document Element.querySelectorAll: Attribute whitespace-separated list selector, not matching class attribute with empty value: #attr-whitespace [class~=""\]] expected: FAIL [In-document Element.querySelector: Attribute whitespace-separated list selector, not matching class attribute with empty value: #attr-whitespace [class~=""\]] expected: FAIL - [In-document Element.querySelectorAll: Attribute whitespace-separated list selector, matching custom data-* attribute with unicode escaped value: [data-attr-whitespace~="\\0000e9"\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute whitespace-separated list selector, matching custom data-* attribute with escaped character: [data-attr-whitespace_foo~="\\e9"\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute whitespace-separated list selector with single-quoted value, matching multiple links with rel attributes: #attr-whitespace a[rel~='bookmark'\], #attr-whitespace a[rel~='nofollow'\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute whitespace-separated list selector with double-quoted value, matching multiple links with rel attributes: #attr-whitespace a[rel~="bookmark"\],#attr-whitespace a[rel~='nofollow'\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute whitespace-separated list selector with unquoted value, matching multiple links with rel attributes: #attr-whitespace a[rel~=bookmark\], #attr-whitespace a[rel~=nofollow\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute whitespace-separated list selector, matching title attribute with value using non-ASCII characters: #attr-whitespace [title~=中文\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute hyphen-separated list selector, matching lang attribute with exact value: #attr-hyphen-div2[lang|="fr"\]] - expected: FAIL - [In-document Element.querySelectorAll: Attribute hyphen-separated list selector, matching lang attribute with partial value: #attr-hyphen-div3[lang|="en"\]] expected: FAIL [In-document Element.querySelector: Attribute hyphen-separated list selector, matching lang attribute with partial value: #attr-hyphen-div3[lang|="en"\]] expected: FAIL - [In-document Element.querySelectorAll: Attribute begins with selector, matching href attributes beginning with specified substring: #attr-begins a[href^="http://www"\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute begins with selector, matching lang attributes beginning with specified substring, : #attr-begins [lang^="en-"\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute begins with selector with single-quoted value, matching class attribute beginning with specified substring: #attr-begins [class^=' apple'\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute begins with selector with double-quoted value, matching class attribute beginning with specified substring: #attr-begins [class^=" apple"\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute ends with selector, matching href attributes ending with specified substring: #attr-ends a[href$=".org"\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute ends with selector, matching lang attributes ending with specified substring, : #attr-ends [lang$="-CH"\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute ends with selector with single-quoted value, matching class attribute ending with specified substring: #attr-ends [class$='apple '\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute ends with selector with double-quoted value, matching class attribute ending with specified substring: #attr-ends [class$="apple "\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute contains selector, matching href attributes beginning with specified substring: #attr-contains a[href*="http://www"\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute contains selector, matching href attributes ending with specified substring: #attr-contains a[href*=".org"\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute contains selector, matching href attributes containing specified substring: #attr-contains a[href*=".example."\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute contains selector, matching lang attributes beginning with specified substring, : #attr-contains [lang*="en-"\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute contains selector, matching lang attributes ending with specified substring, : #attr-contains [lang*="-CH"\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute contains selector with single-quoted value, matching class attribute beginning with specified substring: #attr-contains [class*=' apple'\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute contains selector with single-quoted value, matching class attribute ending with specified substring: #attr-contains [class*='orange '\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute contains selector with single-quoted value, matching class attribute containing specified substring: #attr-contains [class*='ple banana ora'\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute contains selector with double-quoted value, matching class attribute beginning with specified substring: #attr-contains [class*=" apple"\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute contains selector with double-quoted value, matching class attribute ending with specified substring: #attr-contains [class*="orange "\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute contains selector with double-quoted value, matching class attribute containing specified substring: #attr-contains [class*="ple banana ora"\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute contains selector with unquoted value, matching class attribute beginning with specified substring: #attr-contains [class*= apple\]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute contains selector with unquoted value, matching class attribute ending with specified substring: #attr-contains [class*=orange \]] - expected: FAIL - - [In-document Element.querySelectorAll: Attribute contains selector with unquoted value, matching class attribute containing specified substring: #attr-contains [class*= banana \]] - expected: FAIL - - [In-document Element.querySelectorAll: :root pseudo-class selector, not matching document root element: :root] - expected: FAIL - - [In-document Element.querySelector: :root pseudo-class selector, not matching document root element: :root] - expected: FAIL - - [In-document Element.querySelectorAll: :nth-child selector, matching the third child element: #pseudo-nth-table1 :nth-child(3)] - expected: FAIL - - [In-document Element.querySelectorAll: :nth-child selector, matching every third child element: #pseudo-nth li:nth-child(3n)] - expected: FAIL - - [In-document Element.querySelectorAll: :nth-child selector, matching every second child element, starting from the fourth: #pseudo-nth li:nth-child(2n+4)] - expected: FAIL - - [In-document Element.querySelectorAll: :nth-child selector, matching every fourth child element, starting from the third: #pseudo-nth-p1 :nth-child(4n-1)] - expected: FAIL - - [In-document Element.querySelectorAll: :nth-last-child selector, matching the third last child element: #pseudo-nth-table1 :nth-last-child(3)] - expected: FAIL - - [In-document Element.querySelectorAll: :nth-last-child selector, matching every third child element from the end: #pseudo-nth li:nth-last-child(3n)] - expected: FAIL - - [In-document Element.querySelectorAll: :nth-last-child selector, matching every second child element from the end, starting from the fourth last: #pseudo-nth li:nth-last-child(2n+4)] - expected: FAIL - - [In-document Element.querySelectorAll: :nth-last-child selector, matching every fourth element from the end, starting from the third last: #pseudo-nth-p1 :nth-last-child(4n-1)] - expected: FAIL - - [In-document Element.querySelectorAll: :nth-of-type selector, matching the third em element: #pseudo-nth-p1 em:nth-of-type(3)] - expected: FAIL - - [In-document Element.querySelectorAll: :nth-of-type selector, matching every second element of their type: #pseudo-nth-p1 :nth-of-type(2n)] - expected: FAIL - - [In-document Element.querySelectorAll: :nth-of-type selector, matching every second elemetn of their type, starting from the first: #pseudo-nth-p1 span:nth-of-type(2n-1)] - expected: FAIL - - [In-document Element.querySelectorAll: :nth-last-of-type selector, matching the thrid last em element: #pseudo-nth-p1 em:nth-last-of-type(3)] - expected: FAIL - - [In-document Element.querySelectorAll: :nth-last-of-type selector, matching every second last element of their type: #pseudo-nth-p1 :nth-last-of-type(2n)] - expected: FAIL - - [In-document Element.querySelectorAll: :nth-last-of-type selector, matching every second last element of their type, starting from the last: #pseudo-nth-p1 span:nth-last-of-type(2n-1)] - expected: FAIL - - [In-document Element.querySelectorAll: :first-of-type selector, matching the first em element: #pseudo-nth-p1 em:first-of-type] - expected: FAIL - - [In-document Element.querySelectorAll: :first-of-type selector, matching the first of every type of element: #pseudo-nth-p1 :first-of-type] - expected: FAIL - - [In-document Element.querySelectorAll: :first-of-type selector, matching the first td element in each table row: #pseudo-nth-table1 tr :first-of-type] - expected: FAIL - - [In-document Element.querySelectorAll: :last-of-type selector, matching the last em elemnet: #pseudo-nth-p1 em:last-of-type] - expected: FAIL - - [In-document Element.querySelectorAll: :last-of-type selector, matching the last of every type of element: #pseudo-nth-p1 :last-of-type] - expected: FAIL - - [In-document Element.querySelectorAll: :last-of-type selector, matching the last td element in each table row: #pseudo-nth-table1 tr :last-of-type] - expected: FAIL - - [In-document Element.querySelectorAll: :first-child pseudo-class selector, matching first child div element: #pseudo-first-child div:first-child] - expected: FAIL - - [In-document Element.querySelectorAll: :first-child pseudo-class selector, matching first-child of multiple elements: #pseudo-first-child span:first-child] - expected: FAIL - - [In-document Element.querySelectorAll: :last-child pseudo-class selector, matching last child div element: #pseudo-last-child div:last-child] - expected: FAIL - - [In-document Element.querySelectorAll: :last-child pseudo-class selector, matching first-child of multiple elements: #pseudo-last-child span:last-child] - expected: FAIL - - [In-document Element.querySelectorAll: :pseudo-only-child pseudo-class selector, matching all only-child elements: #pseudo-only :only-child] - expected: FAIL - - [In-document Element.querySelectorAll: :pseudo-only-of-type pseudo-class selector, matching all elements with no siblings of the same type: #pseudo-only :only-of-type] - expected: FAIL - - [In-document Element.querySelectorAll: :pseudo-only-of-type pseudo-class selector, matching em elements with no siblings of the same type: #pseudo-only em:only-of-type] - expected: FAIL - - [In-document Element.querySelectorAll: :empty pseudo-class selector, matching empty p elements: #pseudo-empty p:empty] - expected: FAIL - - [In-document Element.querySelectorAll: :empty pseudo-class selector, matching all empty elements: #pseudo-empty :empty] - expected: FAIL - - [In-document Element.querySelectorAll: :link and :visited pseudo-class selectors, matching a and area elements with href attributes: #pseudo-link :link, #pseudo-link :visited] - expected: FAIL - - [In-document Element.querySelectorAll: :link and :visited pseudo-class selectors, not matching link elements with href attributes: #head :link, #head :visited] - expected: FAIL - - [In-document Element.querySelector: :link and :visited pseudo-class selectors, not matching link elements with href attributes: #head :link, #head :visited] - expected: FAIL - [In-document Element.querySelectorAll: :target pseudo-class selector, matching the element referenced by the URL fragment identifier: :target] expected: FAIL @@ -510,21 +252,12 @@ [In-document Element.querySelector: :lang pseudo-class selector, not matching incorrect language: #pseudo-lang-div4:lang(es-AR)] expected: FAIL - [In-document Element.querySelectorAll: :enabled pseudo-class selector, matching all enabled form controls: #pseudo-ui :enabled] - expected: FAIL - [In-document Element.querySelectorAll: :checked pseudo-class selector, matching checked radio buttons and checkboxes: #pseudo-ui :checked] expected: FAIL [In-document Element.querySelector: :checked pseudo-class selector, matching checked radio buttons and checkboxes: #pseudo-ui :checked] expected: FAIL - [In-document Element.querySelectorAll: :not pseudo-class selector, matching : #not>:not(div)] - expected: FAIL - - [In-document Element.querySelectorAll: :not pseudo-class selector, matching : #not * :not(:first-child)] - expected: FAIL - [In-document Element.querySelectorAll: :first-line pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-line] expected: FAIL @@ -549,186 +282,3 @@ [In-document Element.querySelector: ::first-letter pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-letter] expected: FAIL - [In-document Element.querySelectorAll: Class selector, matching element with specified class: .class-p] - expected: FAIL - - [In-document Element.querySelectorAll: Class selector, chained, matching only elements with all specified classes: #class .apple.orange.banana] - expected: FAIL - - [In-document Element.querySelectorAll: Class Selector, chained, with type selector: div.apple.banana.orange] - expected: FAIL - - [In-document Element.querySelectorAll: Class selector, matching element with class value using non-ASCII characters: .台北Táiběi] - expected: FAIL - - [In-document Element.querySelectorAll: Class selector, matching multiple elements with class value using non-ASCII characters: .台北] - expected: FAIL - - [In-document Element.querySelectorAll: Class selector, chained, matching element with multiple class values using non-ASCII characters: .台北Táiběi.台北] - expected: FAIL - - [In-document Element.querySelectorAll: Class selector, matching element with class with escaped character: .foo\\:bar] - expected: FAIL - - [In-document Element.querySelectorAll: Class selector, matching element with class with escaped character: .test\\.foo\\[5\\\]bar] - expected: FAIL - - [In-document Element.querySelectorAll: ID selector, matching element with specified id: #id #id-div1] - expected: FAIL - - [In-document Element.querySelectorAll: ID selector, chained, matching element with specified id: #id-div1, #id-div1] - expected: FAIL - - [In-document Element.querySelectorAll: ID selector, chained, matching element with specified id: #id-div1, #id-div2] - expected: FAIL - - [In-document Element.querySelectorAll: ID Selector, chained, with type selector: div#id-div1, div#id-div2] - expected: FAIL - - [In-document Element.querySelectorAll: ID selector, matching multiple elements with duplicate id: #id-li-duplicate] - expected: FAIL - - [In-document Element.querySelectorAll: ID selector, matching id value using non-ASCII characters: #台北Táiběi] - expected: FAIL - - [In-document Element.querySelectorAll: ID selector, matching id value using non-ASCII characters: #台北] - expected: FAIL - - [In-document Element.querySelectorAll: ID selector, matching id values using non-ASCII characters: #台北Táiběi, #台北] - expected: FAIL - - [In-document Element.querySelectorAll: ID selector, matching element with id with escaped character: #\\#foo\\:bar] - expected: FAIL - - [In-document Element.querySelectorAll: ID selector, matching element with id with escaped character: #test\\.foo\\[5\\\]bar] - expected: FAIL - - [In-document Element.querySelectorAll: Namespace selector, matching element with any namespace: #any-namespace *|div] - expected: FAIL - - [In-document Element.querySelectorAll: Namespace selector, matching div elements in no namespace only: #no-namespace |div] - expected: FAIL - - [In-document Element.querySelectorAll: Namespace selector, matching any elements in no namespace only: #no-namespace |*] - expected: FAIL - - [In-document Element.querySelectorAll: Descendant combinator, matching element that is a descendant of an element with id: #descendant div] - expected: FAIL - - [In-document Element.querySelectorAll: Descendant combinator, matching element with id that is a descendant of an element: body #descendant-div1] - expected: FAIL - - [In-document Element.querySelectorAll: Descendant combinator, matching element with id that is a descendant of an element: div #descendant-div1] - expected: FAIL - - [In-document Element.querySelectorAll: Descendant combinator, matching element with id that is a descendant of an element with id: #descendant #descendant-div2] - expected: FAIL - - [In-document Element.querySelectorAll: Descendant combinator, matching element with class that is a descendant of an element with id: #descendant .descendant-div2] - expected: FAIL - - [In-document Element.querySelectorAll: Descendant combinator, matching element with class that is a descendant of an element with class: .descendant-div1 .descendant-div3] - expected: FAIL - - [In-document Element.querySelectorAll: Descendant combinator, whitespace characters: #descendant\t\r\n#descendant-div2] - expected: FAIL - - [In-document Element.querySelectorAll: Child combinator, matching element that is a child of an element with id: #child>div] - expected: FAIL - - [In-document Element.querySelectorAll: Child combinator, matching element with id that is a child of an element: div>#child-div1] - expected: FAIL - - [In-document Element.querySelectorAll: Child combinator, matching element with id that is a child of an element with id: #child>#child-div1] - expected: FAIL - - [In-document Element.querySelectorAll: Child combinator, matching element with id that is a child of an element with class: #child-div1>.child-div2] - expected: FAIL - - [In-document Element.querySelectorAll: Child combinator, matching element with class that is a child of an element with class: .child-div1>.child-div2] - expected: FAIL - - [In-document Element.querySelectorAll: Child combinator, surrounded by whitespace: #child-div1\t\r\n>\t\r\n#child-div2] - expected: FAIL - - [In-document Element.querySelectorAll: Child combinator, whitespace after: #child-div1>\t\r\n#child-div2] - expected: FAIL - - [In-document Element.querySelectorAll: Child combinator, whitespace before: #child-div1\t\r\n>#child-div2] - expected: FAIL - - [In-document Element.querySelectorAll: Child combinator, no whitespace: #child-div1>#child-div2] - expected: FAIL - - [In-document Element.querySelectorAll: Adjacent sibling combinator, matching element that is an adjacent sibling of an element with id: #adjacent-div2+div] - expected: FAIL - - [In-document Element.querySelectorAll: Adjacent sibling combinator, matching element with id that is an adjacent sibling of an element: div+#adjacent-div4] - expected: FAIL - - [In-document Element.querySelectorAll: Adjacent sibling combinator, matching element with id that is an adjacent sibling of an element with id: #adjacent-div2+#adjacent-div4] - expected: FAIL - - [In-document Element.querySelectorAll: Adjacent sibling combinator, matching element with class that is an adjacent sibling of an element with id: #adjacent-div2+.adjacent-div4] - expected: FAIL - - [In-document Element.querySelectorAll: Adjacent sibling combinator, matching element with class that is an adjacent sibling of an element with class: .adjacent-div2+.adjacent-div4] - expected: FAIL - - [In-document Element.querySelectorAll: Adjacent sibling combinator, matching p element that is an adjacent sibling of a div element: #adjacent div+p] - expected: FAIL - - [In-document Element.querySelectorAll: Adjacent sibling combinator, surrounded by whitespace: #adjacent-p2\t\r\n+\t\r\n#adjacent-p3] - expected: FAIL - - [In-document Element.querySelectorAll: Adjacent sibling combinator, whitespace after: #adjacent-p2+\t\r\n#adjacent-p3] - expected: FAIL - - [In-document Element.querySelectorAll: Adjacent sibling combinator, whitespace before: #adjacent-p2\t\r\n+#adjacent-p3] - expected: FAIL - - [In-document Element.querySelectorAll: Adjacent sibling combinator, no whitespace: #adjacent-p2+#adjacent-p3] - expected: FAIL - - [In-document Element.querySelectorAll: General sibling combinator, matching element that is a sibling of an element with id: #sibling-div2~div] - expected: FAIL - - [In-document Element.querySelectorAll: General sibling combinator, matching element with id that is a sibling of an element: div~#sibling-div4] - expected: FAIL - - [In-document Element.querySelectorAll: General sibling combinator, matching element with id that is a sibling of an element with id: #sibling-div2~#sibling-div4] - expected: FAIL - - [In-document Element.querySelectorAll: General sibling combinator, matching element with class that is a sibling of an element with id: #sibling-div2~.sibling-div] - expected: FAIL - - [In-document Element.querySelectorAll: General sibling combinator, matching p element that is a sibling of a div element: #sibling div~p] - expected: FAIL - - [In-document Element.querySelectorAll: General sibling combinator, surrounded by whitespace: #sibling-p2\t\r\n~\t\r\n#sibling-p3] - expected: FAIL - - [In-document Element.querySelectorAll: General sibling combinator, whitespace after: #sibling-p2~\t\r\n#sibling-p3] - expected: FAIL - - [In-document Element.querySelectorAll: General sibling combinator, whitespace before: #sibling-p2\t\r\n~#sibling-p3] - expected: FAIL - - [In-document Element.querySelectorAll: General sibling combinator, no whitespace: #sibling-p2~#sibling-p3] - expected: FAIL - - [In-document Element.querySelectorAll: Syntax, group of selectors separator, surrounded by whitespace: #group em\t\r \n,\t\r \n#group strong] - expected: FAIL - - [In-document Element.querySelectorAll: Syntax, group of selectors separator, whitespace after: #group em,\t\r\n#group strong] - expected: FAIL - - [In-document Element.querySelectorAll: Syntax, group of selectors separator, whitespace before: #group em\t\r\n,#group strong] - expected: FAIL - - [In-document Element.querySelectorAll: Syntax, group of selectors separator, no whitespace: #group em,#group strong] - expected: FAIL - - [In-document Element.querySelectorAll: :enabled pseudo-class selector, matching all disabled form controls: #pseudo-ui :disabled] - expected: FAIL -