avoid error when asserting mismatched nodes during hydration

This commit is contained in:
Evan You 2016-12-12 14:22:12 -05:00
parent 183bd43c3e
commit 92473853dd

View File

@ -534,7 +534,7 @@ export function createPatchFunction (backend) {
if (vnode.tag) {
return (
vnode.tag.indexOf('vue-component') === 0 ||
vnode.tag.toLowerCase() === node.tagName.toLowerCase()
vnode.tag.toLowerCase() === (node.tagName && node.tagName.toLowerCase())
)
} else {
return _toString(vnode.text) === node.data