whatwg/mimesniff

MIME parsing step for discarding code points after " is unclear

オープン

#64 opened on 2018/04/10

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)HTML (48 件のフォーク)github user discovery
clarificationgood first issuetopic: mime type

Repository metrics

Stars
 (121 個のスター)
PR merge metrics
 (平均マージ 5m) (30d で 1 merged PR)

説明

In https://mimesniff.spec.whatwg.org/#parsing-a-mime-type the following step might be clearer if it explicitly said the trailing sequence after " was to be discarded. Might also be better if the example contains a ';' since the step mentions ';'

Current:

Collect a sequence of code points that are not U+003B (;) from input, given position. Example: Given text/html;charset="shift_jis"iso-2022-jp you end up with text/html;charset=shift_jis.

Suggested:

Collect a sequence of code points that are not U+003B (;) from input, given position and discard the result. Example 1: Given text/html;charset="shift_jis"iso-2022-jp you end up with text/html;charset=shift_jis. Example 2: Given text/csv;charset="utf-8" discarded ;header=present you end up with text/csv;charset=utf-8;header= present.

コントリビューターガイド