MCPcopy Create free account
hub / github.com/ygs-code/vue / assertNodeMatch

Function assertNodeMatch

vue.js:8888–8897  ·  view source on GitHub ↗
(node, vnode, inVPre)

Source from the content-addressed store, hash-verified

8886 }
8887
8888 function assertNodeMatch(node, vnode, inVPre) {
8889 if (isDef(vnode.tag)) {
8890 return vnode.tag.indexOf('vue-component') === 0 || (
8891 !isUnknownElement$$1(vnode, inVPre) &&
8892 vnode.tag.toLowerCase() === (node.tagName && node.tagName.toLowerCase())
8893 )
8894 } else {
8895 return node.nodeType === (vnode.isComment ? 8 : 3)
8896 }
8897 }
8898 // patch入口是这里
8899 // vm.$el, //真正的dom
8900 // vnode, //vnode

Callers 1

hydrateFunction · 0.85

Calls 2

isDefFunction · 0.85
isUnknownElement$$1Function · 0.85

Tested by

no test coverage detected