Skip to content

Commit 70bc485

Browse files
fix(browser_adapter): fix clearNodes() in IE
Fixes angular#3295 Closes angular#3355
1 parent 0a40024 commit 70bc485

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/angular2/src/dom/browser_adapter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,14 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
130130
}
131131
clearNodes(el) {
132132
while (el.firstChild) {
133-
el.firstChild.remove();
133+
el.removeChild(el.firstChild);
134134
}
135135
}
136136
appendChild(el, node) { el.appendChild(node); }
137137
removeChild(el, node) { el.removeChild(node); }
138138
replaceChild(el: Node, newChild, oldChild) { el.replaceChild(newChild, oldChild); }
139139
remove(node): Node {
140-
node.remove();
140+
node.parentNode.removeChild(node);
141141
return node;
142142
}
143143
insertBefore(el, node) { el.parentNode.insertBefore(node, el); }

0 commit comments

Comments
 (0)