From d866d389f39451f930a7958fbd5b8b58b94985c3 Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 12 Feb 2020 12:12:53 -0500 Subject: [PATCH] chore: fix import path + comment --- packages/compiler-dom/src/stringifyStatic.ts | 4 ++++ packages/runtime-dom/src/nodeOps.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/compiler-dom/src/stringifyStatic.ts b/packages/compiler-dom/src/stringifyStatic.ts index cb3fa3f6fc..47e5321b44 100644 --- a/packages/compiler-dom/src/stringifyStatic.ts +++ b/packages/compiler-dom/src/stringifyStatic.ts @@ -32,6 +32,10 @@ function shouldOptimize(node: ElementNode): boolean { let bindingThreshold = 5 let nodeThreshold = 20 + // TODO: check for cases where using innerHTML will result in different + // output compared to imperative node insertions. + // probably only need to check for most common case + // i.e. non-phrasing-content tags inside `

` function walk(node: ElementNode) { for (let i = 0; i < node.children.length; i++) { if (--nodeThreshold === 0) { diff --git a/packages/runtime-dom/src/nodeOps.ts b/packages/runtime-dom/src/nodeOps.ts index 9b51161256..d47803bafd 100644 --- a/packages/runtime-dom/src/nodeOps.ts +++ b/packages/runtime-dom/src/nodeOps.ts @@ -1,4 +1,4 @@ -import { RendererOptions } from '@vue/runtime-core/src' +import { RendererOptions } from '@vue/runtime-core' const doc = (typeof document !== 'undefined' ? document : null) as Document const svgNS = 'http://www.w3.org/2000/svg' -- 2.47.3