Skip to content

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