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', () => {
});
afterEach(() => {
document.body.removeChild(el);
el.remove();
});
it("doesn't mark an annotation lacking targets as an orphan", () => {
......
......@@ -72,7 +72,7 @@ describe('anchoring', () => {
afterEach(() => {
guest.destroy();
container.parentNode.removeChild(container);
container.remove();
console.warn.restore();
});
......
......@@ -35,7 +35,7 @@ describe('annotator.range-util', () => {
});
afterEach(() => {
testNode.parentElement.removeChild(testNode);
testNode.remove();
});
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