MCPcopy
hub / github.com/vuejs/core / isMismatchAllowedByNode

Function isMismatchAllowedByNode

packages/runtime-core/src/hydration.ts:1033–1041  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

1031}
1032
1033function isMismatchAllowedByNode(node: Node): boolean {
1034 return (
1035 node.nodeType === DOMNodeTypes.ELEMENT &&
1036 isMismatchAllowedByAttr(
1037 (node as Element).getAttribute(allowMismatchAttr),
1038 MismatchTypes.CHILDREN,
1039 )
1040 )
1041}
1042
1043function isMismatchAllowedByVNode({ props }: VNode): boolean {
1044 const allowedAttr = props && props[allowMismatchAttr]

Callers 1

isNodeMismatchAllowedFunction · 0.85

Calls 1

isMismatchAllowedByAttrFunction · 0.85

Tested by

no test coverage detected