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

Align mime type parser to spec #749

Merged
merged 1 commit into from
Jan 31, 2022
Merged

Conversation

lucacasonato
Copy link
Collaborator

@lucacasonato lucacasonato commented Jan 28, 2022

The most notable two changes are:

a) the parser now uses html whitespace instead of ascii whitespace (whatwg/mimesniff@126286a)
b) the parser now correctly handles empty quoted values (whatwg/mimesniff@190c18a)

The commit additionally fixes a bug in the parser that would fail
parsing if an invalid name was encountered and its corresponding value
contained a quoted semicolon.

The regression tests for that last issue have been upstreamed to WPT
here: web-platform-tests/wpt#32593.

@bors-servo
Copy link
Contributor

☔ The latest upstream changes (presumably #751) made this pull request unmergeable. Please resolve the merge conflicts.

@lucacasonato lucacasonato force-pushed the mime_parser_fix branch 2 times, most recently from fb0f690 to d75202d Compare January 31, 2022 15:42
The most notable two changes are:
a) the parser now uses html whitespace instead of ascii whitespace
b) the parser now correctly handles empty quoted values

The commit additionally fixes a bug in the parser that would fail
parsing if an invalid name was encountered and its corresponding value
contained a quoted semicolon.
@valenting valenting merged commit 0c7a07f into servo:master Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants