Commit 67d3924b authored by Eduardo Sanz García's avatar Eduardo Sanz García Committed by Eduardo

Replaced `container.parentNode.removeChild(...)`

This is a old pattern. `Element.remove` is currently supported by our
test environment.
parent 1f672969
...@@ -846,7 +846,7 @@ describe('Guest', () => { ...@@ -846,7 +846,7 @@ describe('Guest', () => {
}); });
afterEach(() => { afterEach(() => {
document.body.removeChild(el); el.remove();
}); });
it("doesn't mark an annotation lacking targets as an orphan", () => { it("doesn't mark an annotation lacking targets as an orphan", () => {
......
...@@ -72,7 +72,7 @@ describe('anchoring', () => { ...@@ -72,7 +72,7 @@ describe('anchoring', () => {
afterEach(() => { afterEach(() => {
guest.destroy(); guest.destroy();
container.parentNode.removeChild(container); container.remove();
console.warn.restore(); console.warn.restore();
}); });
......
...@@ -35,7 +35,7 @@ describe('annotator.range-util', () => { ...@@ -35,7 +35,7 @@ describe('annotator.range-util', () => {
}); });
afterEach(() => { afterEach(() => {
testNode.parentElement.removeChild(testNode); testNode.remove();
}); });
function selectNode(node) { function selectNode(node) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment