Skip to content

Add TrustedTransformStream for streaming injection sinks#597

Closed
foolip wants to merge 1 commit intow3c:mainfrom
foolip:document-patching
Closed

Add TrustedTransformStream for streaming injection sinks#597
foolip wants to merge 1 commit intow3c:mainfrom
foolip:document-patching

Conversation

@foolip
Copy link
Copy Markdown
Member

@foolip foolip commented Sep 5, 2025

This is intended to be used for document patching, where new methods of
streaming HTML into an element are introduced:
https://github.com/WICG/declarative-partial-updates/blob/main/patching-explainer.md

The aim is to ensure that for example element.patchUnsafe() returning
a WritableStream is piped through a policy-controlled
TransformStream.

Fixes #594.


Preview | Diff

This is intended to be used for document patching, where new methods of
streaming HTML into an element are introduced:
https://github.com/WICG/declarative-partial-updates/blob/main/patching-explainer.md

The aim is to ensure that for example `element.patchUnsafe()` returning
a `WritableStream` is piped through a policy-controlled
`TransformStream`.

Fixes w3c#594.
@foolip foolip mentioned this pull request Sep 5, 2025
foolip added a commit to whatwg/html that referenced this pull request Sep 5, 2025
Depends on w3c/trusted-types#597 for Trusted
Types integration.
@foolip foolip closed this Sep 9, 2025
foolip added a commit to whatwg/html that referenced this pull request Sep 9, 2025
Depends on w3c/trusted-types#597 for Trusted
Types integration.
foolip added a commit to whatwg/html that referenced this pull request Oct 2, 2025
Depends on w3c/trusted-types#597 for Trusted
Types integration.
noamr pushed a commit to whatwg/html that referenced this pull request Mar 24, 2026
Depends on w3c/trusted-types#597 for Trusted
Types integration.
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.

Streaming support

1 participant