Skip to content

Avoid innerHTML usages #3190

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

Merged
merged 2 commits into from
Jan 2, 2021
Merged

Avoid innerHTML usages #3190

merged 2 commits into from
Jan 2, 2021

Conversation

jrieken
Copy link
Contributor

@jrieken jrieken commented Dec 2, 2020

This PR tackles most (all?) innerHTML usages inside xterm.js so that it can be used in a trusted types compliant context. Fixes #3189 - also for more details.

Copy link
Member

@jerch jerch left a comment

Choose a reason for hiding this comment

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

Thx for looking into this. 👍

Imho there is one little bug hidden in the changes (see below).

@jerch jerch added this to the 4.10.0 milestone Dec 6, 2020
@jrieken
Copy link
Contributor Author

jrieken commented Dec 9, 2020

fixed the bad whitespace replacement

Copy link
Member

@jerch jerch left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@jerch jerch merged commit d94b119 into xtermjs:master Jan 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make xterm.js trusted types compliant
2 participants