Skip to content

Add test for processing of type attribute with <link rel=compression-dictionary> - #61211

Merged
fred-wang merged 2 commits into
masterfrom
fetch-compression-dictionary-type-attribute
Jul 16, 2026
Merged

fred-wang merged 2 commits into
masterfrom
fetch-compression-dictionary-type-attribute

Conversation

@fred-wang

Copy link
Copy Markdown
Contributor

rel=compression-dictionary does not have a default type, so it should always fetch the link when the type is omitted. When the type is specified the same is true if "UA does support the given MIME type for the given link relationship" and "even if that is not a valid MIME type string". Details don't seem to be specified but this test assumes UAs support any type for rel=compression-dictionary, which is what Chromium, Firefox and WebKit do.

http://github.com/whatwg/html/pull/11620
https://html.spec.whatwg.org/#processing-the-type-attribute

…-dictionary">

rel=compression-dictionary does not have a default type, so it should
always fetch the link when the type is omitted. When the type is specified
the same is true if "UA does support the given MIME type for the given link
relationship" and "even if that is not a valid MIME type string". Details
don't seem to be specified but this test assumes UAs support any type for
rel=compression-dictionary, which is what Chromium, Firefox and WebKit do.

http://github.com/whatwg/html/pull/11620
https://html.spec.whatwg.org/#processing-the-type-attribute
@fred-wang
fred-wang force-pushed the fetch-compression-dictionary-type-attribute branch from 6f4aaea to 48b6b8f Compare July 16, 2026 12:00
@fred-wang
fred-wang requested a review from pmeenan July 16, 2026 12:00
@wpt-pr-bot

Copy link
Copy Markdown
Collaborator

There are no reviewers for this pull request. Please reach out on the chat room to get help with this. Thank you!

@pmeenan pmeenan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks!

@fred-wang
fred-wang merged commit aa26903 into master Jul 16, 2026
37 of 38 checks passed
@fred-wang
fred-wang deleted the fetch-compression-dictionary-type-attribute branch July 16, 2026 19:23
@fred-wang

Copy link
Copy Markdown
Contributor Author

Mmh, for some reason the 2 commits were not squashed before merging, sorry about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4 participants