Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issueReporter: Use DOM API instead of string concatenation #104644

Merged
merged 1 commit into from
Aug 28, 2020

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.

src/vs/base/common/htmlElement.ts Outdated Show resolved Hide resolved
@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
3 participants