fix(parse5): do not try to insert empty text node

This commit is contained in:
Victor Berchet 2015-06-24 09:40:35 +02:00
parent 3ea655918e
commit 0a2f6ddc64
1 changed files with 1 additions and 1 deletions

View File

@ -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; }