Browse Source

Merge pull request #1219 from visionm45/master

node or new
tags/3.1.2
Ulrich-Matthias Schäfer 2 years ago
parent
commit
239a854014
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/utils/adopter.js

+ 1
- 1
src/utils/adopter.js View File

@@ -42,7 +42,7 @@ export function makeInstance (element, isHTML = false) {
}

export function nodeOrNew (name, node) {
return node instanceof globals.window.Node ? node : create(name)
return (node && node.ownerDocument && node instanceof node.ownerDocument.defaultView.Node) ? node : create(name)
}

// Adopt existing svg elements

Loading…
Cancel
Save