mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 10:38:59 +01:00
Revert "clearNode should use replaceChildren (#157169)"
This reverts commit 85c03e0238.
This commit is contained in:
@@ -19,7 +19,9 @@ import { withNullAsUndefined } from 'vs/base/common/types';
|
||||
import { URI } from 'vs/base/common/uri';
|
||||
|
||||
export function clearNode(node: HTMLElement): void {
|
||||
node.replaceChildren();
|
||||
while (node.firstChild) {
|
||||
node.firstChild.remove();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user