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

Create Trusted Type policy for assigning an HTML in detectElementResize.js #1614

Merged
merged 5 commits into from
Dec 9, 2020
Merged

Conversation

shhnjk
Copy link
Contributor

@shhnjk shhnjk commented Nov 21, 2020

When react virtualized is used in a page where it enforces Trusted Types, Trusted Types violation will trigger because there is an innerHTML usage in detectElementResize.js.

I have made a fix to create a Trusted Type policy that returns the same HTML to eliminate this Trusted Types violation.

This PR fixes #1575.

@shhnjk shhnjk changed the title Remove innerHTML usage from detectElementResize.js Create Trusted Type policy for assigning an HTML in detectElementResize.js Nov 21, 2020
@shhnjk
Copy link
Contributor Author

shhnjk commented Nov 22, 2020

Either this or #1608 should fix the Trusted Types issue.

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.

Support Trusted Types
1 participant