Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: wbamberg <[email protected]>
  • Loading branch information
hamishwillee and wbamberg committed Sep 20, 2024
1 parent 339657c commit e1f2a8f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ If the value is not the URL of a resource, it must be one of the following strin
For example, a {{domxref("TrustedTypePolicy")}} was created using {{domxref("TrustedTypePolicyFactory/createPolicy", "window.trustedTypes.createPolicy()")}} with a name that wasn't listed in the `trusted-types` directive, or the new policy did not provide adequate sanitization.
- `trusted-types-sink`
- : A resource that violated the [`require-trusted-types-for`](/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/trusted-types) CSP directive.
For example, the directive was set to `script` but the a sink for sanitized data, such as the {{domxref("Element.innerHTML")}} property did not use a {{domxref("TrustedTypePolicy")}} to sanitize the data before passing it to `innerHTML`.
For example, the directive was set to `script` but the document did not use a {{domxref("TrustedTypePolicy")}} to sanitize data before passing it to a sink such as {{domxref("Element.innerHTML")}}.

## Examples

Expand Down

0 comments on commit e1f2a8f

Please sign in to comment.