From: daiwei Date: Sat, 1 Feb 2025 03:41:27 +0000 (+0800) Subject: chore: update X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12801%2Fhead;p=thirdparty%2Fvuejs%2Fcore.git chore: update --- diff --git a/packages/runtime-core/src/hydration.ts b/packages/runtime-core/src/hydration.ts index bc938b5877..3977b45a1d 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) }