chore: update

This commit is contained in:
daiwei 2025-02-01 11:41:27 +08:00
parent b7e11639d5
commit b2efba8ff0
1 changed files with 1 additions and 5 deletions

View File

@ -1003,9 +1003,5 @@ function isMismatchAllowedForCommentNode(
node: Node, node: Node,
{ props }: VNode, { props }: VNode,
): boolean { ): boolean {
return ( return isComment(node) && props != null && hasOwn(props, allowMismatchAttr)
node.nodeType === DOMNodeTypes.COMMENT &&
props != null &&
hasOwn(props, allowMismatchAttr)
)
} }