Skip to content

Avoid innerHTML usages#3190

Merged
jerch merged 2 commits intoxtermjs:masterfrom
jrieken:joh/trustedTypes
Jan 2, 2021
Merged

Avoid innerHTML usages#3190
jerch merged 2 commits intoxtermjs:masterfrom
jrieken:joh/trustedTypes

Conversation

@jrieken
Copy link
Copy Markdown
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
Copy Markdown
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).

Comment thread src/browser/AccessibilityManager.ts Outdated
@jerch jerch added this to the 4.10.0 milestone Dec 6, 2020
@jrieken
Copy link
Copy Markdown
Contributor Author

jrieken commented Dec 9, 2020

fixed the bad whitespace replacement

Copy link
Copy Markdown
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