Trusted Types compatibility: use DOM API for creating HTML elements instead of string concatenation in welcomeOverlay.ts #105505
Labels
engineering
VS Code - Build / issue tracking / etc.
insiders-released
Patch has been released in VS Code Insiders
workbench-welcome
Welcome page issues
Milestone
The next step in resolving #103699. The Trusted Types violation here is setting an HTMLElement’s text content by assigning it to
.innerHTML
. Because in all of the cases the HTMLElement is already created withdom.ts#$
function, the idea is to pass the text as itschildren
argument.That is to replace:
dom.append(parent, $(‘span’)).innerHTML = text
withdom.append(parent, $(‘span’, {}, text))
.The text was updated successfully, but these errors were encountered: