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

Clarify that tags do not contain control characters #369

Merged
merged 2 commits into from
Mar 21, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Forgot about U+007F
domenic committed Mar 19, 2025
commit fa514e484a0fc980652d17862c1a6f790b3359d9
2 changes: 1 addition & 1 deletion speculation-rules.bs
Original file line number Diff line number Diff line change
@@ -375,7 +375,7 @@ add the following step
1. Let |tag| be null.
1. If |parsed|["`tag`"] [=map/exists=], then:
1. If |parsed|["`tag`"] is not an [=ASCII string=], then return null.
1. If |parsed|["`tag`"] contains any [=C0 control=] [=code points=], then return null.
1. If |parsed|["`tag`"] contains any [=code points=] that are not in the range U+0020 to U+007E inclusive, then return null.
1. Set |tag| to |parsed|["`tag`"].
1. If |parsed|["`prefetch`"] [=map/exists=] and is a [=list=], then [=list/for each=] |prefetchRule| of |parsed|["`prefetch`"]:
1. If |prefetchRule| is not a [=map=], then [=iteration/continue=].