fix(dom): remove methods is allowed on text nodes as well

Fixes #1473
Closes #1478
This commit is contained in:
Tobias Bosch 2015-04-21 10:49:14 -07:00
parent 97e6fb6835
commit e70a2f21dd

View File

@ -157,7 +157,7 @@ class BrowserDomAdapter extends GenericBrowserDomAdapter {
void replaceChild(Node el, Node newNode, Node oldNode) { void replaceChild(Node el, Node newNode, Node oldNode) {
oldNode.replaceWith(newNode); oldNode.replaceWith(newNode);
} }
Element remove(Element el) { ChildNode remove(ChildNode el) {
return el..remove(); return el..remove();
} }
void insertBefore(Node el, node) { void insertBefore(Node el, node) {