Skip to content

Commit

Permalink
check node type in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Feb 14, 2014
1 parent bfd505e commit 9af11d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ var utils = module.exports = {
node.innerHTML = template.trim()
/* jshint boss: true */
while (child = node.firstChild) {
frag.appendChild(child)
if (node.nodeType === 1) {
frag.appendChild(child)
}
}
return frag
},
Expand Down

0 comments on commit 9af11d0

Please sign in to comment.