Skip to content

Commit

Permalink
Merge pull request #1185 from ktmouk/fix-root-node-ie11
Browse files Browse the repository at this point in the history
Fix: IE11 does not support getRootNode
  • Loading branch information
FezVrasta committed Oct 30, 2020
2 parents 7cfd52d + 66b4ca6 commit 671f71e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dom-utils/contains.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function contains(parent: Element, child: Element) {
return true;
}
// then fallback to custom implementation with Shadow DOM support
else if (isShadowRoot(rootNode)) {
else if (rootNode && isShadowRoot(rootNode)) {
let next = child;
do {
if (next && parent.isSameNode(next)) {
Expand Down

0 comments on commit 671f71e

Please sign in to comment.