]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: update edison/fix/12782 12801/head
authordaiwei <daiwei521@126.com>
Sat, 1 Feb 2025 03:41:27 +0000 (11:41 +0800)
committerdaiwei <daiwei521@126.com>
Sat, 1 Feb 2025 03:41:27 +0000 (11:41 +0800)
packages/runtime-core/src/hydration.ts

index bc938b58775bccd6eb4a392232d9c0c54f7796c1..3977b45a1d2f7b716127ee8ec736f8900f8888ba 100644 (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)
 }