diff --git a/packages/runtime-core/src/hydration.ts b/packages/runtime-core/src/hydration.ts index bc938b587..3977b45a1 100644 --- a/packages/runtime-core/src/hydration.ts +++ b/packages/runtime-core/src/hydration.ts @@ -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) }