WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@noamr
Copy link
Collaborator

@noamr noamr commented Dec 2, 2025

Updated patching explainer with new API details, including 'streamHTMLUnsafe' and interleaved patching methods. Added clarifications on sanitation and content security, as well as example of how this can be used with addressable comments.

Updated patching explainer with new API details, including 'streamHTMLUnsafe' and interleaved patching methods. Added clarifications on sanitation and content security, as well as example of how this can be used with addressable comments.
@noamr noamr requested a review from foolip December 2, 2025 11:14
```js
byteOrTextStream.pipeTo(elementOrShadowRoot.streamHTML({sanitizer}));
byteOrTextStream.pipeTo(elementOrShadowRoot.streamHTMLUnsafe({sanitizer}));
byteOrTextStream.pipeTo(elementOrShadowRoot.streamHTML({sanitizer, runScripts}));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No runScripts for streamHTML, right? My understanding is that executing scripts can never be considered "safe".

Clarified details about one-off patching and streaming parser behavior. Updated examples for the use of sanitizers in streamHTML.
@noamr noamr merged commit 555ac49 into main Dec 3, 2025
2 checks passed
github-actions bot added a commit that referenced this pull request Dec 3, 2025
SHA: 555ac49
Reason: push, by noamr

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

3 participants