Skip to content

Commit

Permalink
Change step 11 of 'Update the image data' into substeps
Browse files Browse the repository at this point in the history
  • Loading branch information
zcorpan committed Jan 11, 2016
1 parent 5e6f6ae commit 16eb8bb
Showing 1 changed file with 25 additions and 10 deletions.
35 changes: 25 additions & 10 deletions source
Expand Up @@ -23966,16 +23966,31 @@ interface <dfn>HTMLImageElement</dfn> : <span>HTMLElement</span> {

</li>

<li><p>&#x231B; <span data-x="resolve a url">Resolve</span> <var>selected source</var>, relative
to the element, and let <var>absolute URL</var> be the <span>resulting absolute URL</span>. If
that is not successful, then <span>abort the image request</span> for the <span>current
request</span> and the <span>pending request</span>, set the <span>current request</span> to the
<span data-x="img-error">broken</span> state, let <span>pending request</span> be null,
<span>queue a task</span> to change the <span>current request</span>'s <span
data-x="img-req-url">current URL</span> to <var>selected source</var>, <span>fire a simple
event</span> named <code data-x="event-error">error</code> at the <code>img</code> element and
then <span>fire a simple event</span> named <code data-x="event-loadend">loadend</code> at the
<code>img</code> element, and abort these steps.</p></li>
<li>

<p>&#x231B; <span data-x="resolve a url">Resolve</span> <var>selected source</var>, relative
to the element, and let <var>absolute URL</var> be the <span>resulting absolute URL</span>. If
that is not successful, run these substeps:</p>

<ol>

<li><p>&#x231B; <span>Abort the image request</span> for the <span>current request</span> and
the <span>pending request</span>.</p></li>

<li><p>&#x231B; Set the <span>current request</span> to the <span
data-x="img-error">broken</span> state.</p></li>

<li><p>&#x231B; Let <span>pending request</span> be null.</p></li>

<li><p>&#x231B; <span>Queue a task</span> to change the <span>current request</span>'s <span
data-x="img-req-url">current URL</span> to <var>selected source</var>, <span>fire a simple
event</span> named <code data-x="event-error">error</code> at the <code>img</code> element and
then <span>fire a simple event</span> named <code data-x="event-loadend">loadend</code> at the
<code>img</code> element.</p></li>

<li><p>&#x231B; Abort the <span>update the image data</span> algorithm.</p></li>

</ol>

<li>

Expand Down

0 comments on commit 16eb8bb

Please sign in to comment.