Skip to content

Commit 084fe49

Browse files
committed
Tests: Skip MutationObserver tests in more legacy browsers
1 parent 10e0992 commit 084fe49

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/unit/selector.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1756,10 +1756,16 @@ QUnit[ QUnit.jQuerySelectors ? "test" : "skip" ]( "disconnected nodes", function
17561756
assert.equal( $opt.is( ":selected" ), true, "selected option" );
17571757
} );
17581758

1759-
// Support: IE 11+, Edge 12 - 18+
1759+
// Support: IE 11+, Edge 12 - 18+, Firefox <63 only, iOS <11 only
17601760
// IE/Edge don't support Shadow DOM.
1761+
// Old Firefox doesn't support `attachShadow` but Safari implemented it
1762+
// before `getRootNode` so we need to check both.
17611763
// selector-native doesn't support querying inside of Shadow DOM.
1762-
QUnit[ QUnit.jQuerySelectors && document.body.getRootNode ? "test" : "skip" ](
1764+
QUnit[
1765+
QUnit.jQuerySelectors && document.body.attachShadow && document.body.getRootNode ?
1766+
"test" :
1767+
"skip"
1768+
](
17631769
"Shadow DOM nodes supported as root", function( assert ) {
17641770
assert.expect( 2 );
17651771

0 commit comments

Comments
 (0)