Skip to content

Commit

Permalink
Bug 1925468 - Factor out "Get Trusted Type Data For Attribute". r=smaug
Browse files Browse the repository at this point in the history
This patch introduces TrustedTypeUtils::GetTrustedTypeDataForAttribute
to implement the corresponding algorithm from the spec:
https://w3c.github.io/trusted-types/dist/spec/#get-trusted-type-data-for-attribute

It is currently only used by TrustedTypePolicyFactory::GetAttributeType
but "Get Trusted Types-compliant attribute value" will use it to when
we implement trusted types for setAttribute/setAttributeNS.
https://w3c.github.io/trusted-types/dist/spec/#validate-attribute-mutation

Differential Revision: https://phabricator.services.mozilla.com/D227926

UltraBlame original commit: d0f1354e499346707784337f05f60bee3de283b1
  • Loading branch information
marco-c committed Dec 1, 2024
1 parent 3489cbf commit d4d33d7
Show file tree
Hide file tree
Showing 3 changed files with 595 additions and 243 deletions.
Loading

0 comments on commit d4d33d7

Please sign in to comment.