Skip to content

Commit 9af11d0

Browse files
committed
check node type in templates
1 parent bfd505e commit 9af11d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utils.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ var utils = module.exports = {
132132
node.innerHTML = template.trim()
133133
/* jshint boss: true */
134134
while (child = node.firstChild) {
135-
frag.appendChild(child)
135+
if (node.nodeType === 1) {
136+
frag.appendChild(child)
137+
}
136138
}
137139
return frag
138140
},

0 commit comments

Comments
 (0)