Skip to content

Implement Trusted Types #36258

@TimvdLippe

Description

@TimvdLippe

Spec:

Code:

  • components/script/dom/webidls/TrustedTypes.webidl
  • components/script/dom/trustedtypes.rs

Tests:

  • ./mach test-wpt tests/wpt/tests/trusted-types

This specification is partially upstreamed into HTML already (whatwg/html#10199) and in-progress for DOM (whatwg/dom#1268)

I discovered that the current IDL type of Element#setHTMLUnsafe currently takes in a DOMString html rather than a (TrustedHTML or DOMString) html: #36240 (comment)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions