diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/adopter.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/adopter.js b/src/utils/adopter.js index b016837..217aafb 100644 --- a/src/utils/adopter.js +++ b/src/utils/adopter.js @@ -53,6 +53,10 @@ export function adopt (node) { // make sure a node isn't already adopted if (node.instance instanceof Base) return node.instance + if (node.nodeName === '#document-fragment') { + return new elements.Fragment(node) + } + // initialize variables var className = capitalize(node.nodeName || 'Dom') |