Skip to content

Add textStream() method to Blob interface#221

Open
noamr wants to merge 3 commits into
w3c:mainfrom
noamr:patch-1
Open

Add textStream() method to Blob interface#221
noamr wants to merge 3 commits into
w3c:mainfrom
noamr:patch-1

Conversation

@noamr
Copy link
Copy Markdown

@noamr noamr commented May 17, 2026

Add textStream method to Blob interface for streaming text.

Part of whatwg/fetch#1861

For normative changes, the following tasks have been completed:

Implementation commitment:


Preview | Diff

Add textStream method to Blob interface for streaming text.
@noamr
Copy link
Copy Markdown
Author

noamr commented May 17, 2026

Corresponding to whatwg/fetch#1862

Comment thread index.bs Outdated
### The {{Blob/textStream()}} method ### {#text-stream-method-algo}

The <dfn method for=Blob>textStream()</dfn> method, when invoked, must return
the result of calling [=get stream=] on [=this=], [=pipe through|piped through=] a new {{TextDecoderStream}} object.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As per the Fetch PR we probably don't want to call this constructor directly.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Yea will continue this once we resolve on how to do this for fetch.

Comment thread index.bs
Clarify the steps for the textStream() method and its behavior compared to FileReader.
Comment thread index.bs Outdated
Comment thread index.bs Outdated
Copy link
Copy Markdown
Collaborator

@mkruisselbrink mkruisselbrink left a comment

Choose a reason for hiding this comment

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

looks good to me as well

chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jun 2, 2026
Reuse the new TextDecoderTransformer, and always use utf-8
Spec: w3c/FileAPI#221

Bug: 514448226
Change-Id: I742ef36f009c62f6f31333488dabb27b52385be3
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jun 2, 2026
Reuse the new TextDecoderTransformer, and always use utf-8
Spec: w3c/FileAPI#221

Bug: 514448226
Change-Id: I742ef36f009c62f6f31333488dabb27b52385be3
beckysiegel pushed a commit to chromium/chromium that referenced this pull request Jun 2, 2026
Reuse the new TextDecoderTransformer, and always use utf-8
Spec: w3c/FileAPI#221

Bug: 514448226
Change-Id: I742ef36f009c62f6f31333488dabb27b52385be3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7882022
Reviewed-by: Philip Jägenstedt <foolip@chromium.org>
Commit-Queue: Noam Rosenthal <nrosenthal@google.com>
Cr-Commit-Position: refs/heads/main@{#1640459}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jun 2, 2026
Reuse the new TextDecoderTransformer, and always use utf-8
Spec: w3c/FileAPI#221

Bug: 514448226
Change-Id: I742ef36f009c62f6f31333488dabb27b52385be3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7882022
Reviewed-by: Philip Jägenstedt <foolip@chromium.org>
Commit-Queue: Noam Rosenthal <nrosenthal@google.com>
Cr-Commit-Position: refs/heads/main@{#1640459}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jun 2, 2026
Reuse the new TextDecoderTransformer, and always use utf-8
Spec: w3c/FileAPI#221

Bug: 514448226
Change-Id: I742ef36f009c62f6f31333488dabb27b52385be3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7882022
Reviewed-by: Philip Jägenstedt <foolip@chromium.org>
Commit-Queue: Noam Rosenthal <nrosenthal@google.com>
Cr-Commit-Position: refs/heads/main@{#1640459}
@noamr noamr changed the title Implement textStream method in Blob interface Add textStream() method to Blob interface Jun 3, 2026
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.

4 participants