Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Add the Priority Hints changes to the html spec #8470
Add the Priority Hints changes to the html spec #8470
Changes from 1 commit
e431c1d
c85da3a
2a3d6a8
a92e253
8d0eece
885557a
9b73bf4
124eba5
c65c2ec
f7c8c53
3fae597
385e54f
59d000c
0ec01fe
ba9cb8a
37b4a08
c3a901a
93247ca
e33a3d5
9466ccc
f57829d
5639d68
fd8998b
133deee
d5908d0
4c701e7
7679f30
c6890d7
65c22f3
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have some type system errors here.
First, this definitely shouldn't be an attribute (i.e., an
Attr
).When you extract the value from the attribute, you're going to end up with a state. (E.g., attr-fetchpriority-high-state.) This is kind of like a strongly-typed enum. This is important because the state infrastructure normalizes away differences in attribute values, e.g.
fetchpriority=" hIGHh "
still gets normalized to the high state.OK, but Fetch expects a string, not a fetch priority attribute state. So we need a conversion somewhere.
Probably it's nicest to store the string in the link options struct, and convert when you create it. One way to do the conversion would be:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This variable isn't used?