cell renderer tweak wrt to tt policy

This commit is contained in:
Johannes Rieken
2020-10-08 11:33:29 +02:00
parent feca52798c
commit f5ccc129cc
2 changed files with 16 additions and 20 deletions

View File

@@ -22,13 +22,6 @@ export function clearNode(node: HTMLElement): void {
}
}
export function trustedInnerHTML(node: Element, value: TrustedHTML): void {
// this is a workaround for innerHTML not allowing for "asymetric" accessors
// see https://github.com/microsoft/vscode/issues/106396#issuecomment-692625393
// and https://github.com/microsoft/TypeScript/issues/30024
node.innerHTML = value as unknown as string;
}
export function isInDOM(node: Node | null): boolean {
while (node) {
if (node === document.body) {