Skip to content

Conversation

martgil
Copy link
Collaborator

@martgil martgil commented Oct 27, 2024

This PR added RETURN_TRUSTED_TYPE flag in DomPurfify.sanitize() applicable functions.

close #5576


Tests (delete all except exactly one):

  • Does not need tests (refactor only, docs or internal changes)

To be filled by reviewers

I have reviewed that this PR... (tick whichever items you personally focused on during this review):

  • addresses the issue it closes (if any)
  • code is readable and understandable
  • is accompanied with tests, or tests are not needed
  • is free of vulnerabilities
  • is documented clearly and usefully, or doesn't need documentation

@martgil martgil requested a review from sosnovsky as a code owner October 27, 2024 05:52
@martgil martgil marked this pull request as draft October 27, 2024 05:52
@martgil martgil closed this Oct 27, 2024
@martgil
Copy link
Collaborator Author

martgil commented Oct 27, 2024

browser support and some javascript libraries do not work support TrustedTypes - https://developer.mozilla.org/en-US/docs/Web/API/Trusted_Types_API

@martgil martgil deleted the issue-5576-add-trusted-html-support branch October 27, 2024 09:05
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.

Use Trusted Types in DOMPurify

1 participant