Skip to content

Commit

Permalink
Source formatting nits
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic authored and bengreenstein committed Dec 14, 2018
1 parent a6d5236 commit c093e8c
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions source
Expand Up @@ -27319,32 +27319,33 @@ was an English &lt;a href="/wiki/Music_hall">music hall&lt;/a> singer, ...</code
<p>If the <code>img</code> element's <code data-x="attr-img-lazyload">lazyload</code> attribute is
not in the <span data-x="attr-lazyload-off-state">Off</span> state, the user agent may immediately
fetch metadata from the image header. To fetch image metadata, the user agent must run the
following steps:
following steps:</p>

<ol>
<li><p>Let <var>request</var> be the result of <span data-x="create a potential-CORS request">
creating a potential-CORS request</span> given <var>urlString</var>, "<code
data-x="">image</code>", and the current state of the element's <code
data-x="attr-img-crossorigin">crossorigin</code> content attribute.</p></li>
<li><p>Let <var>request</var> be the result of <span data-x="create a potential-CORS
request">creating a potential-CORS request</span> given <var>urlString</var>, "<code
data-x="">image</code>", and the current state of the element's <code
data-x="attr-img-crossorigin">crossorigin</code> content attribute.</p></li>

<li><p>Set <var>request</var>'s <span data-x="concept-request-client">client</span> to the
element's <span>node document</span>'s <code>Window</code> object's <span>environment settings
object</span>.</p></li>
<li><p>Set <var>request</var>'s <span data-x="concept-request-client">client</span> to the
element's <span>node document</span>'s <code>Window</code> object's <span>environment settings
object</span>.</p></li>

<li><p>If the element <span data-x="use srcset or picture">uses <code>srcset</code> or <code>
picture</code></span>, set <var>request</var>'s <span data-x="concept-request-initiator">
initiator</span> to "<code data-x="">imageset</code>".</p></li>
<li><p>If the element <span data-x="use srcset or picture">uses <code>srcset</code> or
<code>picture</code></span>, set <var>request</var>'s <span
data-x="concept-request-initiator">initiator</span> to "<code
data-x="">imageset</code>".</p></li>

<li><p>Set <var>request</var>'s <span data-x="concept-request-referrer-policy">referrer
policy</span> to the current state of the element's <code
data-x="attr-img-referrerpolicy">referrerpolicy</code> attribute.</p></li>
<li><p>Set <var>request</var>'s <span data-x="concept-request-referrer-policy">referrer
policy</span> to the current state of the element's <code
data-x="attr-img-referrerpolicy">referrerpolicy</code> attribute.</p></li>

<li><p>Then <span data-x="concept-request-add-range-header">add a range header</span> to
<var>request</var> starting at byte 0 and ending with as many bytes of the image file as the
user agent determines is reasonable to retrieve metatdata.</p></li>
<li><p>Then <span data-x="concept-request-add-range-header">add a range header</span> to
<var>request</var> starting at byte 0 and ending with as many bytes of the image file as the
user agent determines is reasonable to retrieve metatdata.</p></li>

<li><p><span data-x="concept-fetch">Fetch</span> <var>request</var>, and use the metadata
contained in the response as appropriate for the image.</p></li>
<li><p><span data-x="concept-fetch">Fetch</span> <var>request</var>, and use the metadata
contained in the response as appropriate for the image.</p></li>
</ol>


Expand Down

0 comments on commit c093e8c

Please sign in to comment.