Skip to content

Fix Trusted Types Sink violation with empty input and NAMESPACE#748

Merged
cure53 merged 2 commits intocure53:mainfrom
tosmolka:tosmolka/747
Dec 20, 2022
Merged

Fix Trusted Types Sink violation with empty input and NAMESPACE#748
cure53 merged 2 commits intocure53:mainfrom
tosmolka:tosmolka/747

Conversation

@tosmolka
Copy link
Copy Markdown
Contributor

Use TrustedHTML instead of raw string when assigning empty string to Element.innerHTML sink. This should fix #747 .

@cure53
Copy link
Copy Markdown
Owner

cure53 commented Dec 20, 2022

This looks great, thank you!

@cure53 cure53 merged commit 24d2a7f into cure53:main Dec 20, 2022
@tosmolka tosmolka deleted the tosmolka/747 branch December 21, 2022 10:55
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.

Trusted Types Sink violation with empty input and NAMESPACE

2 participants