|
|
@@ -52,23 +52,6 @@ export const nodeOps: Omit<RendererOptions<Node, Element>, 'patchProp'> = {
|
|
|
el.setAttribute(id, '')
|
|
|
},
|
|
|
|
|
|
- cloneNode(el) {
|
|
|
- const cloned = el.cloneNode(true)
|
|
|
- // #3072
|
|
|
- // - in `patchDOMProp`, we store the actual value in the `el._value` property.
|
|
|
- // - normally, elements using `:value` bindings will not be hoisted, but if
|
|
|
- // the bound value is a constant, e.g. `:value="true"` - they do get
|
|
|
- // hoisted.
|
|
|
- // - in production, hoisted nodes are cloned when subsequent inserts, but
|
|
|
- // cloneNode() does not copy the custom property we attached.
|
|
|
- // - This may need to account for other custom DOM properties we attach to
|
|
|
- // elements in addition to `_value` in the future.
|
|
|
- if (`_value` in el) {
|
|
|
- ;(cloned as any)._value = (el as any)._value
|
|
|
- }
|
|
|
- return cloned
|
|
|
- },
|
|
|
-
|
|
|
// __UNSAFE__
|
|
|
// Reason: innerHTML.
|
|
|
// Static content here can only come from compiled templates.
|