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

Function assertNodeMatch

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

Source from the content-addressed store, hash-verified

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

Callers 1

hydrateFunction · 0.70

Calls 1

isDefFunction · 0.70

Tested by

no test coverage detected