fix(parse5): do not try to insert empty text node
This commit is contained in:
parent
3ea655918e
commit
0a2f6ddc64
@ -234,7 +234,7 @@ export class Parse5DomAdapter extends DomAdapter {
|
|||||||
el.data = value;
|
el.data = value;
|
||||||
} else {
|
} else {
|
||||||
this.clearNodes(el);
|
this.clearNodes(el);
|
||||||
treeAdapter.insertText(el, value);
|
if (value !== '') treeAdapter.insertText(el, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
getValue(el) { return el.value; }
|
getValue(el) { return el.value; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user