Skip to content

Commit 5f59b7a

Browse files
committed
Fetch removes type in favor of just destination
See whatwg/fetch#581. This also aligns the HTML Standard with a change previously made to Fetch where <audio>, <video>, and <track> each got their own destination for the purposes of making <link rel=preload> better.
1 parent 05d0ae7 commit 5f59b7a

File tree

1 file changed

+21
-30
lines changed

1 file changed

+21
-30
lines changed

source

Lines changed: 21 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2685,7 +2685,6 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
26852685
<li><dfn data-x="concept-request-reserved-client" data-x-href="https://fetch.spec.whatwg.org/#concept-request-reserved-client">reserved client</dfn></li>
26862686
<li><dfn data-x="concept-request-target-client-id" data-x-href="https://fetch.spec.whatwg.org/#concept-request-target-client-id">target client id</dfn></li>
26872687
<li><dfn data-x="concept-request-initiator" data-x-href="https://fetch.spec.whatwg.org/#concept-request-initiator">initiator</dfn></li>
2688-
<li><dfn data-x="concept-request-type" data-x-href="https://fetch.spec.whatwg.org/#concept-request-type">type</dfn></li>
26892688
<li><dfn data-x="concept-request-destination" data-x-href="https://fetch.spec.whatwg.org/#concept-request-destination">destination</dfn></li>
26902689
<li><dfn data-x="concept-potential-destination" data-x-href="https://fetch.spec.whatwg.org/#concept-potential-destination">potential destination</dfn></li>
26912690
<li><dfn data-x="concept-potential-destination-translate" data-x-href="https://fetch.spec.whatwg.org/#concept-potential-destination-translate">translating</dfn> a <span data-x="concept-potential-destination">potential destination</span></li>
@@ -23975,11 +23974,11 @@ interface <dfn>HTMLHyperlinkElementUtils</dfn> {
2397523974
resolving the <span>URL</span> "<code data-x="">/favicon.ico</code>" against the
2397623975
<code>Document</code> object's <span data-x="concept-document-url">URL</span>, <span
2397723976
data-x="concept-request-client">client</span> is the <code>Document</code> object's
23978-
<span>relevant settings object</span>, <span data-x="concept-request-type">type</span> is "<code
23979-
data-x="">image</code>", <span data-x="concept-request-destination">destination</span> is "<code
23980-
data-x="">image</code>", <span>synchronous flag</span> is set, <span
23981-
data-x="concept-request-credentials-mode">credentials mode</span> is "<code
23982-
data-x="">include</code>", and whose <span>use-URL-credentials flag</span> is set.</p></li>
23977+
<span>relevant settings object</span>, <span
23978+
data-x="concept-request-destination">destination</span> is "<code data-x="">image</code>",
23979+
<span>synchronous flag</span> is set, <span data-x="concept-request-credentials-mode">credentials
23980+
mode</span> is "<code data-x="">include</code>", and whose <span>use-URL-credentials flag</span>
23981+
is set.</p></li>
2398323982

2398423983
<!--FETCH--><li><p>Let <var>response</var> be the result of <span
2398523984
data-x="concept-fetch">fetching</span> <var>request</var>.</p></li>
@@ -27191,8 +27190,7 @@ was an English &lt;a href="/wiki/Music_hall">music hall&lt;/a> singer, ...</pre>
2719127190

2719227191
<p>&#x231B; Set <var>request</var>'s <span data-x="concept-request-client">client</span> to the
2719327192
element's <span>node document</span>'s <code>Window</code> object's <span>environment settings
27194-
object</span> and <span data-x="concept-request-type">type</span> to "<code
27195-
data-x="">image</code>".</p>
27193+
object</span>.</p>
2719627194

2719727195
<p>&#x231B; If the element <span data-x="use srcset or picture">uses <code>srcset</code> or
2719827196
<code>picture</code></span>, set <var>request</var>'s <span
@@ -28062,8 +28060,7 @@ was an English &lt;a href="/wiki/Music_hall">music hall&lt;/a> singer, ...</pre>
2806228060
<var>corsAttributeState</var>.</p></li>
2806328061

2806428062
<li><p>Set <var>request</var>'s <span data-x="concept-request-client">client</span> to
28065-
<var>client</var>, <span data-x="concept-request-type">type</span> to "<code
28066-
data-x="">image</code>", <span data-x="concept-request-initiator">initiator</span> to "<code
28063+
<var>client</var>, <span data-x="concept-request-initiator">initiator</span> to "<code
2806728064
data-x="">imageset</code>", and set <var>request</var>'s <span>synchronous
2806828065
flag</span>.</p></li>
2806928066

@@ -31251,7 +31248,6 @@ interface <dfn>HTMLVideoElement</dfn> : <span>HTMLMediaElement</span> {
3125131248
<span data-x="concept-request-url">url</span> is the <span>resulting URL record</span>,
3125231249
<span data-x="concept-request-client">client</span> is the element's <span>node document</span>'s
3125331250
<code>Window</code> object's <span>environment settings object</span>, <span
31254-
data-x="concept-request-type">type</span> is "<code data-x="">image</code>", <span
3125531251
data-x="concept-request-destination">destination</span> is "<code data-x="">image</code>",
3125631252
<span data-x="concept-request-credentials-mode">credentials mode</span> is "<code
3125731253
data-x="">include</code>", and whose <span>use-URL-credentials flag</span> is set.
@@ -33020,18 +33016,19 @@ interface <dfn>MediaError</dfn> {
3302033016
</li>
3302133017

3302233018
<li>
33019+
<p>Let <var>destination</var> be "<code data-x="">audio</code>" if the <span>media
33020+
element</span> is an <code>audio</code> element and to "<code data-x="">video</code>"
33021+
otherwise.</p>
3302333022

3302433023
<p>Let <var>request</var> be the result of <span
3302533024
data-x="create a potential-CORS request">creating a potential-CORS request</span> given
33026-
<var>current media resource</var>'s <span>URL record</span>, "<code data-x="">media</code>",
33027-
and the <span>media element</span>'s <code
33028-
data-x="attr-media-crossorigin">crossorigin</code> content attribute value.
33025+
<var>current media resource</var>'s <span>URL record</span>, <var>destination</var>, and the
33026+
<span>media element</span>'s <code data-x="attr-media-crossorigin">crossorigin</code>
33027+
content attribute value.
3302933028

3303033029
<p>Set <var>request</var>'s <span data-x="concept-request-client">client</span> to the
3303133030
<span>media element</span>'s <span>node document</span>'s <code>Window</code> object's
33032-
<span>environment settings object</span> and <span data-x="concept-request-type">type</span>
33033-
to "<code data-x="">audio</code>" if the <span>media element</span> is an <code>audio</code>
33034-
element and to "<code data-x="">video</code>" otherwise.
33031+
<span>environment settings object</span>.</p>
3303533032

3303633033
<!--FETCH--><p><span data-x="concept-fetch">Fetch</span> <var>request</var>.
3303733034

@@ -36482,13 +36479,12 @@ interface <dfn>VideoTrack</dfn> {
3648236479
<ol>
3648336480
<li><p>Let <var>request</var> be the result of <span
3648436481
data-x="create a potential-CORS request">creating a potential-CORS request</span> given
36485-
<var>URL</var>, "<code data-x="">media</code>", and <var>corsAttributeState</var>, and with the
36482+
<var>URL</var>, "<code data-x="">track</code>", and <var>corsAttributeState</var>, and with the
3648636483
<i>same-origin fallback flag</i> set.</p></li>
3648736484

3648836485
<li><p>Set <var>request</var>'s <span data-x="concept-request-client">client</span> to the
3648936486
<code>track</code> element's <span>node document</span>'s <code>Window</code> object's
36490-
<span>environment settings object</span> and <span data-x="concept-request-type">type</span> to
36491-
"<code data-x="">track</code>".</p></li>
36487+
<span>environment settings object</span>.</p></li>
3649236488

3649336489
<!--FETCH--><li><p><span data-x="concept-fetch">Fetch</span> <var>request</var>.</p></li>
3649436490
</ol>
@@ -47715,11 +47711,10 @@ ldh-str = &lt; as defined in <a href="https://tools.ietf.org/html/rfc1034#
4771547711
<li><p>Let <var>request</var> be a new <span data-x="concept-request">request</span> whose
4771647712
<span data-x="concept-request-url">url</span> is the <span>resulting URL record</span>,
4771747713
<span data-x="concept-request-client">client</span> is the element's <span>node document</span>'s
47718-
<span>relevant settings object</span>, <span data-x="concept-request-type">type</span> is "<code
47719-
data-x="">image</code>", <span data-x="concept-request-destination">destination</span> is "<code
47720-
data-x="">image</code>", <span data-x="concept-request-credentials-mode">credentials mode</span>
47721-
is "<code data-x="">include</code>", and whose <span>use-URL-credentials flag</span> is
47722-
set.</p></li>
47714+
<span>relevant settings object</span>, <span
47715+
data-x="concept-request-destination">destination</span> is "<code data-x="">image</code>", <span
47716+
data-x="concept-request-credentials-mode">credentials mode</span> is "<code
47717+
data-x="">include</code>", and whose <span>use-URL-credentials flag</span> is set.</p></li>
4772347718

4772447719
<!--FETCH--><li><p><span data-x="concept-fetch">Fetch</span> <var>request</var>.</p></li>
4772547720
</ol>
@@ -86625,8 +86620,7 @@ interface <dfn>NavigatorOnLine</dfn> {
8662586620
data-x="">script</code>", and <var>CORS setting</var>.</p></li>
8662686621

8662786622
<li><p>Set <var>request</var>'s <span data-x="concept-request-client">client</span> to
86628-
<var>settings object</var>, its <span data-x="concept-request-type">type</span> to "<code
86629-
data-x="">script</code>", its <span data-x="concept-request-nonce-metadata">cryptographic nonce
86623+
<var>settings object</var>, its <span data-x="concept-request-nonce-metadata">cryptographic nonce
8663086624
metadata</span> to <var>cryptographic nonce</var>, its <span
8663186625
data-x="concept-request-integrity-metadata">integrity metadata</span> to <var>integrity
8663286626
metadata</var> and its <span data-x="concept-request-parser-metadata">parser metadata</span> to
@@ -86690,7 +86684,6 @@ interface <dfn>NavigatorOnLine</dfn> {
8669086684
<li><p>Let <var>request</var> be a new <span data-x="concept-request">request</span> whose <span
8669186685
data-x="concept-request-url">url</span> is <var>url</var>, <span
8669286686
data-x="concept-request-client">client</span> is <var>fetch client settings object</var>, <span
86693-
data-x="concept-request-type">type</span> is "<code data-x="">script</code>", <span
8669486687
data-x="concept-request-destination">destination</span> is <var>destination</var>, <span
8669586688
data-x="concept-request-mode">mode</span> is "<code data-x="">same-origin</code>", <span
8669686689
data-x="concept-request-credentials-mode">credentials mode</span> is "<code
@@ -86736,7 +86729,6 @@ interface <dfn>NavigatorOnLine</dfn> {
8673686729
<li><p>Let <var>request</var> be a new <span data-x="concept-request">request</span> whose <span
8673786730
data-x="concept-request-url">url</span> is <var>url</var>, <span
8673886731
data-x="concept-request-client">client</span> is <var>settings object</var>, <span
86739-
data-x="concept-request-type">type</span> is "<code data-x="">script</code>", <span
8674086732
data-x="concept-request-destination">destination</span> is "<var>script</var>", <span
8674186733
data-x="concept-request-parser-metadata">parser metadata</span> is "<code data-x="">not
8674286734
parser-inserted</code>", <span>synchronous flag</span> is set, and whose
@@ -86887,7 +86879,6 @@ interface <dfn>NavigatorOnLine</dfn> {
8688786879
<li><p>Let <var>request</var> be a new <span data-x="concept-request">request</span> whose
8688886880
<span data-x="concept-request-url">url</span> is <var>url</var>, <span
8688986881
data-x="concept-request-destination">destination</span> is <var>destination</var>, <span
86890-
data-x="concept-request-type">type</span> is "<code data-x="">script</code>", <span
8689186882
data-x="concept-request-mode">mode</span> is "<code data-x="">cors</code>", <span
8689286883
data-x="concept-request-credentials-mode">credentials mode</span> is <var>credentials
8689386884
mode</var>, <span data-x="concept-request-nonce-metadata">cryptographic nonce metadata</span> is

0 commit comments

Comments
 (0)