File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,10 @@ function shouldOptimize(node: ElementNode): boolean {
32
32
let bindingThreshold = 5
33
33
let nodeThreshold = 20
34
34
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>`
35
39
function walk ( node : ElementNode ) {
36
40
for ( let i = 0 ; i < node . children . length ; i ++ ) {
37
41
if ( -- nodeThreshold === 0 ) {
Original file line number Diff line number Diff line change 1
- import { RendererOptions } from '@vue/runtime-core/src '
1
+ import { RendererOptions } from '@vue/runtime-core'
2
2
3
3
const doc = ( typeof document !== 'undefined' ? document : null ) as Document
4
4
const svgNS = 'http://www.w3.org/2000/svg'
You can’t perform that action at this time.
0 commit comments