w3c / w3c/FileAPI

Refactor text() et al to share more infrastructure with Fetch

オープン
#133 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
HTML
スター
118
フォーク
52
平均マージ
9日 16時間
マージ済み PR(30日)
1

説明

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.)

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

Issue にリンクされている Fetch の「concept-body-consume-body」アルゴリズムと File API の「text method algorithm」を読み、共通する手順とストリーム処理に関する前提から始めます。text() と関連メソッドがより多くの共通インフラストラクチャを再利用し、明示的な cloning を要求するのではなく、File API のストリームを繰り返し扱う動作を維持できれば作業は完了です。

索引モデルが issue の本文から書いたものです。

評価

領域
api, web-dev
issue の種類
リファクタリング
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。