Skip to content

Commit d866d38

Browse files
committed
chore: fix import path + comment
1 parent 27913e6 commit d866d38

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/compiler-dom/src/stringifyStatic.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ function shouldOptimize(node: ElementNode): boolean {
3232
let bindingThreshold = 5
3333
let nodeThreshold = 20
3434

35+
// TODO: check for cases where using innerHTML will result in different
36+
// output compared to imperative node insertions.
37+
// probably only need to check for most common case
38+
// i.e. non-phrasing-content tags inside `<p>`
3539
function walk(node: ElementNode) {
3640
for (let i = 0; i < node.children.length; i++) {
3741
if (--nodeThreshold === 0) {

packages/runtime-dom/src/nodeOps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { RendererOptions } from '@vue/runtime-core/src'
1+
import { RendererOptions } from '@vue/runtime-core'
22

33
const doc = (typeof document !== 'undefined' ? document : null) as Document
44
const svgNS = 'http://www.w3.org/2000/svg'

0 commit comments

Comments
 (0)