]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: fix import path + comment
authorEvan You <yyx990803@gmail.com>
Wed, 12 Feb 2020 17:12:53 +0000 (12:12 -0500)
committerEvan You <yyx990803@gmail.com>
Wed, 12 Feb 2020 17:12:53 +0000 (12:12 -0500)
packages/compiler-dom/src/stringifyStatic.ts
packages/runtime-dom/src/nodeOps.ts

index cb3fa3f6fccd36b877f16894532f22594c24fe88..47e5321b441f266d22c1e0a9d683cd1b198d65a6 100644 (file)
@@ -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 `<p>`
   function walk(node: ElementNode) {
     for (let i = 0; i < node.children.length; i++) {
       if (--nodeThreshold === 0) {
index 9b51161256625c8edd34d0be5523c4604056f88f..d47803bafdf6bb7ee8d817345ac3b622ca35aef6 100644 (file)
@@ -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'