Skip to content

Commit 0a2f6dd

Browse files
committed
fix(parse5): do not try to insert empty text node
1 parent 3ea6559 commit 0a2f6dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/angular2/src/dom/parse5_adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export class Parse5DomAdapter extends DomAdapter {
234234
el.data = value;
235235
} else {
236236
this.clearNodes(el);
237-
treeAdapter.insertText(el, value);
237+
if (value !== '') treeAdapter.insertText(el, value);
238238
}
239239
}
240240
getValue(el) { return el.value; }

0 commit comments

Comments
 (0)