Skip to content

Commit

Permalink
fix(parse5): do not try to insert empty text node
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb committed Jun 24, 2015
1 parent 3ea6559 commit 0a2f6dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/angular2/src/dom/parse5_adapter.ts
Expand Up @@ -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; }
Expand Down

0 comments on commit 0a2f6dd

Please sign in to comment.