[whatwg/fetch] Add "text" destination type, for JavaScript text imports (PR #1898)

This change is to support the changes in whatwg/html#11933, by adding `text` as a destination type.

- [x] At least two implementers are interested (and none opposed):
   * Chromium
   * Gecko
   * Deno
   * Node.js
   * …
- [x] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
   * web-platform-tests/wpt#56812
- [ ] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
   * Chromium: …
   * Gecko: …
   * WebKit: …
   * Deno (not for CORS changes): denoland/deno#29904
- [ ] [MDN issue](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) is filed: …
- [x] The top of this comment includes a [clear commit message](https://github.com/whatwg/meta/blob/main/COMMITTING.md) to use. <!-- If you created this PR from a single commit, Github copied its message. Otherwise, you need to add a commit message yourself. -->

<!-- (See [WHATWG Working Mode: Changes](https://whatwg.org/working-mode#changes) for more details.) -->


<!--
    This comment and the below content is programmatically generated.
    You may add a comma-separated list of anchors you'd like a
    direct link to below (e.g. #idl-serializers, #idl-sequence):

    Don't remove this comment or modify anything below this line.
    If you don't want a preview generated for this pull request,
    just replace the whole of this comment's content by "no preview"
    and remove what's below.
-->
***
<a href="https://whatpr.org/fetch/1898.html" title="Last updated on Dec 17, 2025, 3:20 PM UTC (71cd9c4)">Preview</a> | <a href="https://whatpr.org/fetch/1898/3bc9b2b...71cd9c4.html" title="Last updated on Dec 17, 2025, 3:20 PM UTC (71cd9c4)">Diff</a>
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/fetch/pull/1898

-- Commit Summary --

  * Add "text" destination type, for JavaScript text imports

-- File Changes --

    M fetch.bs (14)

-- Patch Links --

https://github.com/whatwg/fetch/pull/1898.patch
https://github.com/whatwg/fetch/pull/1898.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1898
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/pull/1898@github.com>

Received on Wednesday, 17 December 2025 15:21:06 UTC