Skip to content

Commit de75307

Browse files
committed
Remove the 'target' attribute.
1 parent 70f9c34 commit de75307

File tree

2 files changed

+21
-128
lines changed

2 files changed

+21
-128
lines changed

index.bs

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ A top-level navigation from `https://example.com` to `https://example.com/` caus
8787
on an in-page link would result in a request containing the following HTTP request header:
8888

8989
```
90-
Sec-Metadata: cause="user-activated", destination="document", site="same-origin", target="top-level"
90+
Sec-Metadata: cause="user-activated", destination="document", site="same-origin"
9191
```
9292

9393
Framework {#framework}
@@ -147,7 +147,10 @@ All requests will contain a dictionary member whose key is
147147
Valid {{Sec-Metadata/destination}} values include all valid [=request=] [=request/destination=]
148148
values (the empty string, "`audio`", "`audioworklet`", "`document`", "`embed`", "`font`",
149149
"`image`", "`manifest`", "`object`", "`paintworklet`", "`report`", "`script`", "`serviceworker`",
150-
"`sharedworker`", "`style`", "`track`", "`video`", "`worker`", or "`xslt`").
150+
"`sharedworker`", "`style`", "`track`", "`video`", "`worker`", "`xslt`", or "`nested-document`").
151+
152+
ISSUE(whatwg/fetch#755): Fetch currently does not define `nested-document`. It would be ideal if
153+
we could add it, as the `target` member doesn't seem to be web-compatible.
151154

152155
<div algorithm="get destination">
153156
To <dfn abstract-op local-lt="get destination">obtain the `destination` value</dfn> for a
@@ -195,34 +198,6 @@ Valid {{Sec-Metadata/site}} values are `same-origin`, `same-site`, and `cross-si
195198
3. Return |site|.
196199
</div>
197200

198-
### The `target` Member ### {#target-member}
199-
200-
[=Navigation requests=] will contain a dictionary member whose key is
201-
"<dfn dict-member for="Sec-Metadata">`target`</dfn>", and whose value is an
202-
<a for="structured header" grammar>`string`</a> representing the context in which the request
203-
will be used. Other kinds of requests will not contain a {{Sec-Metadata/target}} member.
204-
205-
Valid {{Sec-Metadata/target}} values are `top-level`, `nested`, and `subresource`.
206-
207-
<div algorithm="get target">
208-
209-
To <dfn abstract-op local-lt="get target">obtain the `target` value</dfn> for a [=request=] (|r|),
210-
run the steps below:
211-
212-
1. If |r| is a [=navigation request=]:
213-
214-
1. If |r|'s [=request/reserved client=] is an [=environment=] whose [=target browsing context=]
215-
is a [=top-level browsing context=], return `top-level`.
216-
217-
2. Assert: |r|'s [=request/reserved client=] is an [=environment=] whose [=target browsing
218-
context=] is a [=nested browsing context=].
219-
220-
3. Return `nested`.
221-
222-
2. Return `null`.
223-
224-
</div>
225-
226201
Integration With Fetch {#fetch-integration}
227202
-------------------------------------------
228203

@@ -239,9 +214,6 @@ To <dfn abstract-op>set the `Sec-Metadata` header for a request</dfn>, given a [
239214
1. Append an item to |header| whose key is {{Sec-Metadata/cause}}, and whose value is the
240215
result of [$get cause|obtaining the cause value$] for |r|.
241216

242-
2. Append an item to |header| whose key is {{Sec-Metadata/target}}, and whose value is the
243-
result of [$get target|obtaining the target value$] for |r|.
244-
245217
4. Append an item to |header| whose key is {{Sec-Metadata/destination}}, and whose value is the
246218
result of [$get destination|obtaining the destination value$] for |r|.
247219

0 commit comments

Comments
 (0)