Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MIME parsing step for discarding code points after " is unclear #64

Open
dd8 opened this issue Apr 10, 2018 · 1 comment
Open

MIME parsing step for discarding code points after " is unclear #64

dd8 opened this issue Apr 10, 2018 · 1 comment
Labels
clarification Standard could be clearer good first issue Ideal for someone new to a WHATWG standard or software project topic: mime type

Comments

@dd8
Copy link

dd8 commented Apr 10, 2018

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.

@annevk annevk added good first issue Ideal for someone new to a WHATWG standard or software project clarification Standard could be clearer labels Apr 10, 2018
@annevk
Copy link
Member

annevk commented Apr 10, 2018

I'd support adding the example. I'm not a huge fan of adding semi-redundant normative text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarification Standard could be clearer good first issue Ideal for someone new to a WHATWG standard or software project topic: mime type
Development

No branches or pull requests

2 participants