|
|
@@ -34,8 +34,8 @@ export function insertBefore (node, target, before) {
|
|
|
}
|
|
|
|
|
|
export function removeChild (node, child) {
|
|
|
- if (node.nodeType === 3) {
|
|
|
- node.parentNode.setAttr('value', '')
|
|
|
+ if (child.nodeType === 3) {
|
|
|
+ node.setAttr('value', '')
|
|
|
return
|
|
|
}
|
|
|
node.removeChild(child)
|