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;
|
||||
} else {
|
||||
this.clearNodes(el);
|
||||
treeAdapter.insertText(el, value);
|
||||
if (value !== '') treeAdapter.insertText(el, value);
|
||||
}
|
||||
}
|
||||
getValue(el) { return el.value; }
|
||||
|
|
Loading…
Reference in New Issue