Skip to content

Commit

Permalink
Fix Trusted Types violations (round #2) #106395
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed Sep 10, 2020
1 parent 01f9355 commit 44699b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/vs/base/browser/ui/selectBox/selectBoxCustom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ export class SelectBoxList extends Disposable implements ISelectBoxDelegate, ILi
content.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { outline: none !important; }`);
}

this.styleElement.innerHTML = content.join('\n');
this.styleElement.textContent = content.join('\n');

this.applyStyles();
}
Expand Down Expand Up @@ -680,7 +680,7 @@ export class SelectBoxList extends Disposable implements ISelectBoxDelegate, ILi
});


container.innerHTML = this.options[longest].text + (!!this.options[longest].decoratorRight ? (this.options[longest].decoratorRight + ' ') : '');
container.textContent = this.options[longest].text + (!!this.options[longest].decoratorRight ? (this.options[longest].decoratorRight + ' ') : '');
elementWidth = dom.getTotalWidth(container);
}

Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/debug/browser/repl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export class Repl extends ViewPane implements IHistoryNavigationWidget {
const replInputLineHeight = this.replInput.getOption(EditorOption.lineHeight);

// Set the font size, font family, line height and align the twistie to be centered, and input theme color
this.styleElement.innerHTML = `
this.styleElement.textContent = `
.repl .repl-tree .expression {
font-size: ${fontSize}px;
font-family: ${fontFamily};
Expand Down

0 comments on commit 44699b0

Please sign in to comment.