whatwg/mimesniff

MIME parsing step for discarding code points after " is unclear

开放

#64 创建于 2018年4月10日

 (1 条评论) (0 个反应) (0 位负责人)HTML (48 个派生)github user discovery
clarificationgood first issuetopic: mime type

仓库指标

星标
 (121 个星标)
PR 合并指标
 (平均合并 5分钟) (30 天内合并 1 个 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.

贡献者指南