MCPcopy Create free account
hub / github.com/TruthHun/BookStack / assertNodeMatch

Function assertNodeMatch

static/vuejs/vue.common.js:5032–5041  ·  view source on GitHub ↗
(node, vnode)

Source from the content-addressed store, hash-verified

5030 }
5031
5032 function assertNodeMatch (node, vnode) {
5033 if (isDef(vnode.tag)) {
5034 return (
5035 vnode.tag.indexOf('vue-component') === 0 ||
5036 vnode.tag.toLowerCase() === (node.tagName && node.tagName.toLowerCase())
5037 )
5038 } else {
5039 return node.nodeType === (vnode.isComment ? 8 : 3)
5040 }
5041 }
5042
5043 return function patch (oldVnode, vnode, hydrating, removeOnly, parentElm, refElm) {
5044 if (isUndef(vnode)) {

Callers 1

hydrateFunction · 0.70

Calls 1

isDefFunction · 0.70

Tested by

no test coverage detected