@@ -2742,6 +2742,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
2742
2742
<li><dfn data-x="concept-request-traversable-for-user-prompts" data-x-href="https://fetch.spec.whatwg.org/#concept-request-window">traversable for user prompts</dfn></li>
2743
2743
<li><dfn data-x-href="https://fetch.spec.whatwg.org/#request-top-level-navigation-initiator-origin">top-level navigation initiator origin</dfn></li>
2744
2744
<li><dfn data-x-href="https://fetch.spec.whatwg.org/#concept-request-add-range-header">add a range header</dfn></li>
2745
+ <li><dfn data-x-href="https://fetch.spec.whatwg.org/#destination-type">destination type</dfn></li>
2745
2746
</ul>
2746
2747
</li>
2747
2748
<li>
@@ -16764,7 +16765,6 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
16764
16765
16765
16766
<dl>
16766
16767
<dt><dfn data-x="link options href">href</dfn> (default the empty string)</dt>
16767
- <dt><dfn data-x="link options destination">destination</dfn> (default the empty string)</dt>
16768
16768
<dt><dfn data-x="link options initiator">initiator</dfn> (default "<code
16769
16769
data-x="">link</code>")</dt>
16770
16770
<dt><dfn data-x="link options integrity">integrity</dfn> (default the empty string)</dt>
@@ -16773,6 +16773,9 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
16773
16773
string)</dt>
16774
16774
<dd>A string</dd>
16775
16775
16776
+ <dt><dfn data-x="link options destination">destination</dfn> (default the empty string)</dt>
16777
+ <dd>A <span>destination type</span>.</dd>
16778
+
16776
16779
<dt><dfn data-x="link options crossorigin">crossorigin</dfn> (default <span
16777
16780
data-x="attr-crossorigin-none">No CORS</span>)</dt>
16778
16781
<dd>A <span>CORS settings attribute</span> state</dd>
@@ -16823,11 +16826,6 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
16823
16826
<p>Let <var>options</var> be a new <span>link processing options</span> with</p>
16824
16827
16825
16828
<dl class="props">
16826
- <dt><span data-x="link options destination">destination</span></dt>
16827
- <dd>the result of <span
16828
- data-x="translate a preload destination">translating</span> the state of <var>el</var>'s <code
16829
- data-x="attr-link-as">as</code> attribute</dd>
16830
-
16831
16829
<dt><span data-x="link options crossorigin">crossorigin</span></dt>
16832
16830
<dd>the state of <var>el</var>'s <code data-x="attr-link-crossorigin">crossorigin</code>
16833
16831
content attribute</dd>
@@ -16980,7 +16978,7 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
16980
16978
</li>
16981
16979
16982
16980
<li><p><span>Apply link options from parsed header attributes</span> to <var>options</var>
16983
- given <var>attribs</var>.</p></li>
16981
+ given <var>attribs</var> and <var>rel</var>. If that returned false, then return .</p></li>
16984
16982
16985
16983
<li><p>If <var>attribs</var>["<code data-x="attr-link-imagesrcset">imagesrcset</code>"] <span
16986
16984
data-x="map exists">exists</span> and <var>attribs</var>["<code
@@ -17000,14 +16998,26 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
17000
16998
17001
16999
<div algorithm>
17002
17000
<p>To <dfn>apply link options from parsed header attributes</dfn> to a <span>link processing
17003
- options</span> <var>options</var> given <var>attribs</var>:</p>
17001
+ options</span> <var>options</var> given <var>attribs</var> and a string <var>rel</var> :</p>
17004
17002
17005
17003
<ol>
17006
- <li><p>If <var>attribs</var>["<code data-x="attr-link-as">as</code>"] <span data-x="map
17007
- exists">exists</span>, then set <var>options</var>'s <span data-x="link options
17008
- destination">destination</span> to the result of <span
17009
- data-x="translate a preload destination">translating</span> <var>attribs</var>["<code
17010
- data-x="attr-link-as">as</code>"].</p></li>
17004
+ <li>
17005
+ <p>If <var>rel</var> is "<code data-x="rel-preload">preload</code>":</p>
17006
+
17007
+ <ol>
17008
+ <li><p>If <var>attribs</var>["<code data-x="attr-link-as">as</code>"] does not <span
17009
+ data-x="map exists">exist</span>, then return false.</p></li>
17010
+
17011
+ <li><p>Let <var>destination</var> be the result of <span data-x="translate a preload
17012
+ destination">translating</span> <var>attribs</var>["<code
17013
+ data-x="attr-link-as">as</code>"].</p></li>
17014
+
17015
+ <li><p>If <var>destination</var> is null, then return false.</p></li>
17016
+
17017
+ <li><p>Set <var>options</var>'s <span data-x="link options destination">destination</span> to
17018
+ <var>destination</var>.</p></li>
17019
+ </ol>
17020
+ </li>
17011
17021
17012
17022
<li><p>If <var>attribs</var>["<code data-x="attr-link-crossorigin">crossorigin</code>"] <span
17013
17023
data-x="map exists">exists</span> and is an <span>ASCII case-insensitive</span> match for one of
@@ -17039,6 +17049,8 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
17039
17049
a <span>fetch priority attribute</span> keyword, then set <var>options</var>'s <span
17040
17050
data-x="link options fetch priority">fetch priority</span> to that <span>fetch priority
17041
17051
attribute</span> keyword.</p></li>
17052
+
17053
+ <li><p>Return true.</p></li>
17042
17054
</ol>
17043
17055
</div>
17044
17056
@@ -17190,7 +17202,7 @@ data-x="rel-preload">preload</span>; <span data-x="attr-link-as">as</span>=font<
17190
17202
</li>
17191
17203
17192
17204
<li><p><span>Apply link options from parsed header attributes</span> to <var>options</var>
17193
- given <var>attribs</var>.</p></li>
17205
+ given <var>attribs</var> and <var>rel</var>. If that returned false, then return .</p></li>
17194
17206
17195
17207
<li><p>Run the <span>process a link header</span> steps for <var>rel</var> given
17196
17208
<var>options</var>.</p></li>
@@ -28989,7 +29001,7 @@ document.body.appendChild(wbr);</code></pre>
28989
29001
<ol>
28990
29002
<li><p>If <var>destination</var> is not "<code data-x="">fetch</code>", "<code data-x="">font</code>",
28991
29003
"<code data-x="">image</code>", "<code data-x="">script</code>", "<code data-x="">style</code>",
28992
- or "<code data-x="">track</code>", then return null .</p></li>
29004
+ or "<code data-x="">track</code>", then return nulll .</p></li>
28993
29005
28994
29006
<li><p>Return the result of <span
28995
29007
data-x="concept-potential-destination-translate">translating</span>
@@ -29112,6 +29124,15 @@ document.body.appendChild(wbr);</code></pre>
29112
29124
data-x="create link options from element">creating link options</span> from
29113
29125
<var>el</var>.</p></li>
29114
29126
29127
+ <li><p>Let <var>destination</var> be the result of <span data-x="translate a preload
29128
+ destination">translating</span> the keyword representing the state of <var>el</var>'s <code
29129
+ data-x="attr-link-as">as</code> attribute.</p></li>
29130
+
29131
+ <li><p>If <var>destination</var> is null, then return.</p></li>
29132
+
29133
+ <li><p>Set <var>options</var>'s <span data-x="link options destination">destination</span> to
29134
+ <var>destination</var>.</p></li>
29135
+
29115
29136
<li>
29116
29137
<p><span>Preload</span> <var>options</var>, with the following steps given a <span
29117
29138
data-x="concept-response">response</span> <var>response</var>:
0 commit comments