Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws.

This commit is contained in:
Florian Quèze
2017-03-08 10:17:52 +01:00
parent a97d317f5b
commit b15de4893d
125 changed files with 185 additions and 170 deletions

View File

@@ -1604,7 +1604,7 @@ MarkupView.prototype = {
// this container will do double duty as the container for the single
// text child.
while (container.children.firstChild) {
container.children.removeChild(container.children.firstChild);
container.children.firstChild.remove();
}
container.setInlineTextChild(container.node.inlineTextChild);
@@ -1616,7 +1616,7 @@ MarkupView.prototype = {
if (!container.hasChildren) {
while (container.children.firstChild) {
container.children.removeChild(container.children.firstChild);
container.children.firstChild.remove();
}
container.childrenDirty = false;
container.setExpanded(false);
@@ -1659,7 +1659,7 @@ MarkupView.prototype = {
}
while (container.children.firstChild) {
container.children.removeChild(container.children.firstChild);
container.children.firstChild.remove();
}
if (!(children.hasFirst && children.hasLast)) {