Skip to content

Commit 4c567d1

Browse files
committed
Revert "clearNode should use replaceChildren (microsoft#157169)"
This reverts commit 85c03e0.
1 parent a051032 commit 4c567d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/vs/base/browser/dom.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ import { withNullAsUndefined } from 'vs/base/common/types';
1919
import { URI } from 'vs/base/common/uri';
2020

2121
export function clearNode(node: HTMLElement): void {
22-
node.replaceChildren();
22+
while (node.firstChild) {
23+
node.firstChild.remove();
24+
}
2325
}
2426

2527
/**

0 commit comments

Comments
 (0)