Skip to content

issueReporter: Use DOM API instead of string concatenation#104644

Merged
jrieken merged 1 commit intomicrosoft:masterfrom
annkamsk:dom-api-instead-string-concat
Aug 28, 2020
Merged

issueReporter: Use DOM API instead of string concatenation#104644
jrieken merged 1 commit intomicrosoft:masterfrom
annkamsk:dom-api-instead-string-concat

Conversation

@annkamsk
Copy link
Contributor

This PR fixes #104643 and 12 (out of ~110) issues discovered by tsec.

Changes are based mostly on using general functions createHTMLElement and createHTMLTableElement from src/vs/base/common/htmlElement.ts in places where previously the HTML was constructed by setting an .innerHTML property.

@jrieken jrieken requested a review from RMacfarlane August 24, 2020 15:22
@jrieken jrieken added this to the August 2020 milestone Aug 24, 2020
@jrieken
Copy link
Member

jrieken commented Aug 24, 2020

@RMacfarlane please review changes in the issue reporter

@jrieken jrieken self-requested a review August 24, 2020 15:49
@annkamsk annkamsk changed the title Use DOM API instead of string concatenation issueReporter: Use DOM API instead of string concatenation Aug 24, 2020
@jrieken jrieken self-requested a review August 25, 2020 07:13
Copy link
Member

@jrieken jrieken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove src/vs/base/common/htmlElement.ts and only use $

@annkamsk annkamsk force-pushed the dom-api-instead-string-concat branch from bec60e6 to e9495c1 Compare August 25, 2020 08:56
@jrieken jrieken merged commit 555808e into microsoft:master 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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants