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
1 changed files with 1 additions and 1 deletions

View File

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