Skip to content

Set HTMLElement's content by providing it as a child, not by .innerHTML#105506

Merged
chrmarti merged 1 commit intomicrosoft:masterfrom
annkamsk:dom-api-welcome-overlay
Aug 28, 2020
Merged

Set HTMLElement's content by providing it as a child, not by .innerHTML#105506
chrmarti merged 1 commit intomicrosoft:masterfrom
annkamsk:dom-api-welcome-overlay

Conversation

@annkamsk
Copy link
Contributor

This PR fixes #105505
It replaces: dom.append(parent, $(‘span’)).innerHTML = text with dom.append(parent, $(‘span’, {}, text)).

@aeschli aeschli assigned chrmarti and unassigned aeschli Aug 28, 2020
@jrieken jrieken requested a review from chrmarti August 28, 2020 08:36
@jrieken jrieken added the engineering VS Code - Build / issue tracking / etc. label Aug 28, 2020
@chrmarti chrmarti merged commit 44700f8 into microsoft:master Aug 28, 2020
@chrmarti chrmarti added this to the August 2020 milestone Aug 28, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Oct 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

engineering VS Code - Build / issue tracking / etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Trusted Types compatibility: use DOM API for creating HTML elements instead of string concatenation in welcomeOverlay.ts

4 participants