Refactor text() et al to share more infrastructure with Fetch
还没有人认领这个 Issue。
评估
调研方向
阅读 Fetch 的“concept-body-consume-body”算法以及 issue 中链接的 File API“text method algorithm”,从共享步骤及其对流处理的假设开始。完成工作的标志是 text() 和相关方法能够复用更多通用基础设施,同时保留 File API 对重复流的行为,而不是要求显式 cloning。
由索引模型根据 Issue 内容生成。
描述
Andrea implemented these methods in Firefox and ended up using a shared abstraction with our code for Fetch.
If I look at https://fetch.spec.whatwg.org/#concept-body-consume-body and https://w3c.github.io/FileAPI/#text-method-algo side-by-side it seems quite doable to have less duplication here.
(We might want to point out the one major difference though, which is that File API will create an endless series of streams for the same underlying data where in Fetch that'd require explicit cloning.)
- 主要语言
- HTML
- 星标
- 118
- 派生
- 52
- 平均合并
- 9 天 16 小时
- 30 天内合并 PR
- 1
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
w3c/FileAPI 的其他 Issue
-
TPAC2026
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 1/5 1 小时以内 新手友好度 62/100
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 5/5 一周以上 新手友好度 30/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 80/100
microsoft/magentic-ui#588 ·
-
bug
难度 2/5 1-3 小时 新手友好度 70/100
alexgorbatchev/simple-ptt#3 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
CorrelAid/formtransform#44 ·