@@ -80,14 +80,14 @@ A request generated by a <{picture}> element would result in a request containin
80
80
HTTP request header:
81
81
82
82
```
83
- Sec-Metadata: destination=" image" , site=" cross-site"
83
+ Sec-Metadata: destination=image, site=cross-site
84
84
```
85
85
86
86
A top-level navigation from `https://example.com` to `https://example.com/` caused by a user's click
87
87
on an in-page link would result in a request containing the following HTTP request header:
88
88
89
89
```
90
- Sec-Metadata: cause=" user-activated" , destination=" document" , site=" same-origin"
90
+ Sec-Metadata: cause=user-activated, destination=document, site=same-origin
91
91
```
92
92
93
93
Framework {#framework}
@@ -113,7 +113,7 @@ unknown members, and members whose value is invalid.
113
113
114
114
[=Navigation requests=] will contain a dictionary member whose key is
115
115
"<dfn dict-member for="Sec-Metadata">`cause`</dfn> ", and whose value is an
116
- <a for="structured header" grammar>`string `</a> . Other kinds of requests will not contain a
116
+ <a for="structured header" grammar>`identifier `</a> . Other kinds of requests will not contain a
117
117
{{Sec-Metadata/cause}} member.
118
118
119
119
Valid {{Sec-Metadata/cause}} values are `user-activated` and `forced`, representing whether or not
@@ -141,8 +141,8 @@ To <dfn abstract-op local-lt="get cause">obtain the `cause` value</dfn> for a [=
141
141
142
142
All requests will contain a dictionary member whose key is
143
143
"<dfn dict-member for="Sec-Metadata">`destination`</dfn> ", and whose value is a
144
- <a for="structured header" grammar>`string `</a> representing the [=request=] 's
145
- [=request/destination=] .
144
+ <a for="structured header" grammar>`identifier `</a> representing the [=request=] 's
145
+ [=request/destination=] , or the empty <a for="structured header" grammar>`string`</a> .
146
146
147
147
Valid {{Sec-Metadata/destination}} values include all valid [=request=] [=request/destination=]
148
148
values (the empty string, "`audio`", "`audioworklet`", "`document`", "`embed`", "`font`",
@@ -152,6 +152,9 @@ values (the empty string, "`audio`", "`audioworklet`", "`document`", "`embed`",
152
152
ISSUE(whatwg/fetch#755): Fetch currently does not define `nested-document`. It would be ideal if
153
153
we could add it, as the `target` member doesn't seem to be web-compatible.
154
154
155
+ ISSUE: Perhaps we should define a specific identifier for the empty string, rather than switching
156
+ types from `identifier` to `string` for the empty destination?
157
+
155
158
<div algorithm="get destination">
156
159
To <dfn abstract-op local-lt="get destination">obtain the `destination` value</dfn> for a
157
160
[=request=] (|r|), return |r|'s [=request/destination=] .
@@ -175,7 +178,7 @@ Sec-Metadata: ..., destination="document", ...
175
178
176
179
All requests will contain a dictionary member whose key is
177
180
"<dfn dict-member for="Sec-Metadata">`site`</dfn> ", and whose value is an
178
- <a for="structured header" grammar>`string `</a> representing the relationship between the
181
+ <a for="structured header" grammar>`identifier `</a> representing the relationship between the
179
182
[=request=] 's [=request/origin=] and the [=url/origins=] for the [=URLs=] in the [=request=]' s
180
183
[=request/url list=] .
181
184
0 commit comments