Skip to content

Commit

Permalink
Rebase and fix some nits
Browse files Browse the repository at this point in the history
  • Loading branch information
noamr committed May 19, 2022
1 parent ce1b5d1 commit 29b2676
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -14408,7 +14408,8 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
<dt><dfn data-x="link options type">type</dfn> (default the empty string)</dt>
<dd>A string</dd>

<dt><dfn data-x="link options crossorigin">crossorigin</dfn> (default the empty string)</dt>
<dt><dfn data-x="link options crossorigin">crossorigin</dfn> (default <span
data-x="attr-crossorigin-none">No CORS</span>)</dt>
<dd>A <span>CORS settings attribute</span> state</dd>

<dt><dfn data-x="link options source set">source set</dfn> (default null)</dt>
Expand Down Expand Up @@ -14598,7 +14599,7 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
data-x="attr-link-imagesizes">imagesizes</code>"] <span data-x="map exists">exists</span>,
then set <var>options</var>'s <span data-x="link options source set">source set</span> to
the result of <span data-x="create a source set">creating a source set</span> given
<var>url</var>, <var>attribs</var>["<code
<var>linkObject</var>["<code data-x="">target_uri</code>"], <var>attribs</var>["<code
data-x="attr-link-imagesrcset">imagesrcset</code>"], and <var>attribs</var>["<code
data-x="attr-link-imagesizes">imagesizes</code>"].</p></li>

Expand All @@ -14619,9 +14620,10 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
data-x="attr-link-as">as</code>"].</p></li>

<li><p>If <var>attribs</var>["<code data-x="attr-link-crossorigin">crossorigin</code>"] <span
data-x="map exists">exists</span>, then set <var>options</var>'s <span
data-x="link options crossorigin">crossorigin</span> to <var>attribs</var>["<code
data-x="attr-link-crossorigin">crossorigin</code>"].</p></li>
data-x="map exists">exists</span> and is one of the <span
data-x="enumerated attribute">keywords</span> for the <span>CORS settings attribute</span>, then
set <var>options</var>'s <span data-x="link options crossorigin">crossorigin</span> to he
<span>CORS settings attribute</span> state which corresponds to that keyword.</p></li>

<li><p>If <var>attribs</var>["<code data-x="attr-link-integrity">integrity</code>"] <span
data-x="map exists">exists</span>, then set <var>options</var>'s <span
Expand Down Expand Up @@ -26485,7 +26487,7 @@ document.body.appendChild(wbr);</code></pre>
<p>To <dfn>preload</dfn> given a <span
data-x="link processing options">link processing options</span> <var>options</var> and
an optional <var>processResponse</var>, which is null or an algorithm accepting a <span
data-x="concept-response">response</span> (default null):</p>
data-x="concept-response">response</span>:</p>

<ol>
<li><p>If <var>options</var>'s <span data-x="link options destination">destination</span> is not
Expand Down Expand Up @@ -26542,11 +26544,11 @@ document.body.appendChild(wbr);</code></pre>
<p><!--FETCH--><span data-x="concept-fetch">Fetch</span> <var>request</var>, with
<i data-x="processResponseConsumeBody">processResponseConsumeBody</i>
set to the following steps given <span data-x="concept-response">response</span>
<var>res</var> and null or <span>byte sequence</span> <var>bytesOrNull</var>:</p>
<var>response</var> and null or <span>byte sequence</span> <var>bytesOrNull</var>:</p>

<ol>
<li>
<p>If <var>bytesOrNull</var> is a <span>byte sequence</span>, then set <var>res</var>'s
<p>If <var>bytesOrNull</var> is a <span>byte sequence</span>, then set <var>response</var>'s
<span data-x="concept-response-body">body</span> to the first return value of <span
data-x="body safely extract">safely extracting</span> <var>bytesOrNull</var>.</p>

Expand All @@ -26559,7 +26561,7 @@ document.body.appendChild(wbr);</code></pre>
despite us having already done so once.</p>
</li>

<li><p>Otherwise, set <var>res</var> to a <span>network error</span>.</p></li>
<li><p>Otherwise, set <var>response</var> to a <span>network error</span>.</p></li>

<li><p>Set <var>unsafeEndTime</var> to the <span>unsafe shared current time</span>.</p></li>

Expand All @@ -26573,7 +26575,7 @@ document.body.appendChild(wbr);</code></pre>
data-x="preload on response available">on response available</span> given
<var>response</var>.</p></li>

<li><p>If <var>processResponse</var> is not null, then call <var>processResponse</var> with
<li><p>If <var>processResponse</var> is given, then call <var>processResponse</var> with
<var>response</var>.</p></li>
</ol>
</li>
Expand All @@ -26596,8 +26598,6 @@ document.body.appendChild(wbr);</code></pre>
data-x="link options on document ready">on document ready</span> to <var>commit</var>.
Otherwise call <var>commit</var> with <var>options</var>'s <span
data-x="link options document">document</span>.</p></li>

<li><p>Return success.</p></li>
</ol>

<p>The <span>fetch and process the linked resource</span> steps for this type of linked resource,
Expand Down Expand Up @@ -30169,8 +30169,9 @@ was an English &lt;a href="/wiki/Music_hall">music hall&lt;/a> singer, ...</code
<li><p>If <var>el</var>'s <span>source set</span> is empty,
return null as the URL and undefined as the pixel density.</p></li>

<li><p>Otherwise, take <var>el</var>'s <span>source set</span>
and let it be <var>source set</var>.</p></li>
<li><p>Return the result of <span
data-x="select an image source from a source set">selecting an image</span> from <var>el</var>'s
<span>source set</span>.</p></li>
</ol>

<p>To <dfn>select an image source from a source set</dfn> given a <span>source set</span>
Expand Down

0 comments on commit 29b2676

Please sign in to comment.