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,
{ props }: VNode,
): boolean {
return (
node.nodeType === DOMNodeTypes.COMMENT &&
props != null &&
hasOwn(props, allowMismatchAttr)
)
return isComment(node) && props != null && hasOwn(props, allowMismatchAttr)
}