Skip to content

Commit 7adb63b

Browse files
authored
Merge branch 'whatwg:main' into focusgroup
2 parents 2bfbc7e + ad28192 commit 7adb63b

File tree

1 file changed

+43
-27
lines changed

1 file changed

+43
-27
lines changed

source

Lines changed: 43 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2742,6 +2742,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
27422742
<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>
27432743
<li><dfn data-x-href="https://fetch.spec.whatwg.org/#request-top-level-navigation-initiator-origin">top-level navigation initiator origin</dfn></li>
27442744
<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>
27452746
</ul>
27462747
</li>
27472748
<li>
@@ -16767,7 +16768,6 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
1676716768

1676816769
<dl>
1676916770
<dt><dfn data-x="link options href">href</dfn> (default the empty string)</dt>
16770-
<dt><dfn data-x="link options destination">destination</dfn> (default the empty string)</dt>
1677116771
<dt><dfn data-x="link options initiator">initiator</dfn> (default "<code
1677216772
data-x="">link</code>")</dt>
1677316773
<dt><dfn data-x="link options integrity">integrity</dfn> (default the empty string)</dt>
@@ -16776,6 +16776,9 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
1677616776
string)</dt>
1677716777
<dd>A string</dd>
1677816778

16779+
<dt><dfn data-x="link options destination">destination</dfn> (default the empty string)</dt>
16780+
<dd>A <span>destination type</span>.</dd>
16781+
1677916782
<dt><dfn data-x="link options crossorigin">crossorigin</dfn> (default <span
1678016783
data-x="attr-crossorigin-none">No CORS</span>)</dt>
1678116784
<dd>A <span>CORS settings attribute</span> state</dd>
@@ -16826,11 +16829,6 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
1682616829
<p>Let <var>options</var> be a new <span>link processing options</span> with</p>
1682716830

1682816831
<dl class="props">
16829-
<dt><span data-x="link options destination">destination</span></dt>
16830-
<dd>the result of <span
16831-
data-x="translate a preload destination">translating</span> the state of <var>el</var>'s <code
16832-
data-x="attr-link-as">as</code> attribute</dd>
16833-
1683416832
<dt><span data-x="link options crossorigin">crossorigin</span></dt>
1683516833
<dd>the state of <var>el</var>'s <code data-x="attr-link-crossorigin">crossorigin</code>
1683616834
content attribute</dd>
@@ -16983,7 +16981,7 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
1698316981
</li>
1698416982

1698516983
<li><p><span>Apply link options from parsed header attributes</span> to <var>options</var>
16986-
given <var>attribs</var>.</p></li>
16984+
given <var>attribs</var> and <var>rel</var>. If that returned false, then return.</p></li>
1698716985

1698816986
<li><p>If <var>attribs</var>["<code data-x="attr-link-imagesrcset">imagesrcset</code>"] <span
1698916987
data-x="map exists">exists</span> and <var>attribs</var>["<code
@@ -17003,14 +17001,26 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
1700317001

1700417002
<div algorithm>
1700517003
<p>To <dfn>apply link options from parsed header attributes</dfn> to a <span>link processing
17006-
options</span> <var>options</var> given <var>attribs</var>:</p>
17004+
options</span> <var>options</var> given <var>attribs</var> and a string <var>rel</var>:</p>
1700717005

1700817006
<ol>
17009-
<li><p>If <var>attribs</var>["<code data-x="attr-link-as">as</code>"] <span data-x="map
17010-
exists">exists</span>, then set <var>options</var>'s <span data-x="link options
17011-
destination">destination</span> to the result of <span
17012-
data-x="translate a preload destination">translating</span> <var>attribs</var>["<code
17013-
data-x="attr-link-as">as</code>"].</p></li>
17007+
<li>
17008+
<p>If <var>rel</var> is "<code data-x="rel-preload">preload</code>":</p>
17009+
17010+
<ol>
17011+
<li><p>If <var>attribs</var>["<code data-x="attr-link-as">as</code>"] does not <span
17012+
data-x="map exists">exist</span>, then return false.</p></li>
17013+
17014+
<li><p>Let <var>destination</var> be the result of <span data-x="translate a preload
17015+
destination">translating</span> <var>attribs</var>["<code
17016+
data-x="attr-link-as">as</code>"].</p></li>
17017+
17018+
<li><p>If <var>destination</var> is null, then return false.</p></li>
17019+
17020+
<li><p>Set <var>options</var>'s <span data-x="link options destination">destination</span> to
17021+
<var>destination</var>.</p></li>
17022+
</ol>
17023+
</li>
1701417024

1701517025
<li><p>If <var>attribs</var>["<code data-x="attr-link-crossorigin">crossorigin</code>"] <span
1701617026
data-x="map exists">exists</span> and is an <span>ASCII case-insensitive</span> match for one of
@@ -17042,6 +17052,8 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
1704217052
a <span>fetch priority attribute</span> keyword, then set <var>options</var>'s <span
1704317053
data-x="link options fetch priority">fetch priority</span> to that <span>fetch priority
1704417054
attribute</span> keyword.</p></li>
17055+
17056+
<li><p>Return true.</p></li>
1704517057
</ol>
1704617058
</div>
1704717059

@@ -17193,7 +17205,7 @@ data-x="rel-preload">preload</span>; <span data-x="attr-link-as">as</span>=font<
1719317205
</li>
1719417206

1719517207
<li><p><span>Apply link options from parsed header attributes</span> to <var>options</var>
17196-
given <var>attribs</var>.</p></li>
17208+
given <var>attribs</var> and <var>rel</var>. If that returned false, then return.</p></li>
1719717209

1719817210
<li><p>Run the <span>process a link header</span> steps for <var>rel</var> given
1719917211
<var>options</var>.</p></li>
@@ -28992,7 +29004,7 @@ document.body.appendChild(wbr);</code></pre>
2899229004
<ol>
2899329005
<li><p>If <var>destination</var> is not "<code data-x="">fetch</code>", "<code data-x="">font</code>",
2899429006
"<code data-x="">image</code>", "<code data-x="">script</code>", "<code data-x="">style</code>",
28995-
or "<code data-x="">track</code>", then return null.</p></li>
29007+
or "<code data-x="">track</code>", then return nulll.</p></li>
2899629008

2899729009
<li><p>Return the result of <span
2899829010
data-x="concept-potential-destination-translate">translating</span>
@@ -29115,6 +29127,15 @@ document.body.appendChild(wbr);</code></pre>
2911529127
data-x="create link options from element">creating link options</span> from
2911629128
<var>el</var>.</p></li>
2911729129

29130+
<li><p>Let <var>destination</var> be the result of <span data-x="translate a preload
29131+
destination">translating</span> the keyword representing the state of <var>el</var>'s <code
29132+
data-x="attr-link-as">as</code> attribute.</p></li>
29133+
29134+
<li><p>If <var>destination</var> is null, then return.</p></li>
29135+
29136+
<li><p>Set <var>options</var>'s <span data-x="link options destination">destination</span> to
29137+
<var>destination</var>.</p></li>
29138+
2911829139
<li>
2911929140
<p><span>Preload</span> <var>options</var>, with the following steps given a <span
2912029141
data-x="concept-response">response</span> <var>response</var>:
@@ -65245,12 +65266,12 @@ interface <dfn interface>HTMLDialogElement</dfn> : <span>HTMLElement</span> {
6524565266
<li><p>If <var>localName</var> is not <code data-x="attr-dialog-open">open</code>, then
6524665267
return.</p></li>
6524765268

65248-
<li><p>If <var>element</var>'s <span>node document</span> is not <span>fully active</span>, then
65249-
return.</p></li>
65250-
6525165269
<li><p>If <var>value</var> is null and <var>oldValue</var> is not null, then run the
6525265270
<span>dialog cleanup steps</span> given <var>element</var>.</p></li>
6525365271

65272+
<li><p>If <var>element</var>'s <span>node document</span> is not <span>fully active</span>, then
65273+
return.</p></li>
65274+
6525465275
<li>
6525565276
<p>If <var>element</var> is not <span>connected</span>, then return.</p>
6525665277

@@ -84039,6 +84060,7 @@ interface <dfn interface>ToggleEvent</dfn> : <span>Event</span> {
8403984060
dictionary <dfn dictionary>ToggleEventInit</dfn> : <span>EventInit</span> {
8404084061
DOMString oldState = "";
8404184062
DOMString newState = "";
84063+
Element? source = null;
8404284064
};</code></pre>
8404384065

8404484066
<dl class="domintro">
@@ -145513,19 +145535,16 @@ listing, plaintext, pre, xmp {
145513145535
dialog:not([open]) { display: none; }
145514145536
dialog {
145515145537
position: absolute;
145516-
inset-inline-start: 0; inset-inline-end: 0;
145517-
width: fit-content;
145518-
height: fit-content;
145519-
margin: auto;
145538+
justify-self: dialog;
145520145539
border: solid;
145521145540
padding: 1em;
145522145541
background-color: Canvas;
145523145542
color: CanvasText;
145524145543
}
145525145544
dialog:modal {
145526145545
position: fixed;
145546+
place-self: dialog;
145527145547
overflow: auto;
145528-
inset-block: 0;
145529145548
max-width: calc(100% - 6px - 2em);
145530145549
max-height: calc(100% - 6px - 2em);
145531145550
}
@@ -145543,10 +145562,7 @@ dialog:popover-open {
145543145562

145544145563
[popover] {
145545145564
position: fixed;
145546-
inset: 0;
145547-
width: fit-content;
145548-
height: fit-content;
145549-
margin: auto;
145565+
place-self: dialog;
145550145566
border: solid;
145551145567
padding: 0.25em;
145552145568
overflow: auto;

0 commit comments

Comments
 (0)