Skip to content

Commit

Permalink
[e] (0) Fix grammatically confusing sentence. (bug 6759)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@3149 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 29, 2009
1 parent 26bbb92 commit 81d9201
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 21 deletions.
28 changes: 18 additions & 10 deletions index
Expand Up @@ -17467,17 +17467,25 @@ interface <dfn id=htmlimageelement>HTMLImageElement</dfn> : <a href=#htmlelement
supported.</p>

<p>The <a href=#concept-task title=concept-task>task</a> that is <a href=#queue-a-task title="queue a task">queued</a> by the <a href=#networking-task-source>networking task
source</a> once the resource has been <a href=#fetch title=fetch>fetched</a>, must, if the download was successful
and the image is <i title=img-available><a href=#img-available>available</a></i>, <a href=#queue-a-task>queue
a task</a> to <a href=#fire-a-simple-event>fire a simple event</a> called <code title=event-load><a href=#event-load>load</a></code> at the <code><a href=#the-img-element>img</a></code> element (this
happens after <code title=dom-img-complete><a href=#dom-img-complete>complete</a></code> starts
returning true); and otherwise, if the fetching process fails
without a response from the remote server, or completes but the
image is not a valid or supported image, <a href=#queue-a-task>queue a task</a>
to <a href=#fire-a-simple-event>fire a simple event</a> called <code title=event-error><a href=#event-error>error</a></code> on the <code><a href=#the-img-element>img</a></code>
element.</p>
source</a> once the resource has been <a href=#fetch title=fetch>fetched</a>, must act as appropriate given the
following alternatives:</p>

<p>The <a href=#task-source>task source</a> for these tasks is the <a href=#dom-manipulation-task-source>DOM
<dl class=switch><dt>If the download was successful and the image is <i title=img-available><a href=#img-available>available</a></i></dt>

<dd><a href=#queue-a-task>Queue a task</a> to <a href=#fire-a-simple-event>fire a simple event</a>
called <code title=event-load><a href=#event-load>load</a></code> at the <code><a href=#the-img-element>img</a></code>
element (this happens after <code title=dom-img-complete><a href=#dom-img-complete>complete</a></code> starts returning
true).</dd>

<dt>Otherwise (the fetching process failed without a response from
the remote server, or completed but the image is not a supported
image)</dt>

<dd><a href=#queue-a-task>Queue a task</a> to <a href=#fire-a-simple-event>fire a simple event</a>
called <code title=event-error><a href=#event-error>error</a></code> on the
<code><a href=#the-img-element>img</a></code> element.</dd>

</dl><p>The <a href=#task-source>task source</a> for these tasks is the <a href=#dom-manipulation-task-source>DOM
manipulation task source</a>.</p>

<hr><p>What an <code><a href=#the-img-element>img</a></code> element represents depends on the <code title=attr-img-src><a href=#attr-img-src>src</a></code> attribute and the <code title=attr-img-alt><a href=#attr-img-alt>alt</a></code> attribute.</p>
Expand Down
34 changes: 23 additions & 11 deletions source
Expand Up @@ -18714,17 +18714,29 @@ interface <dfn>HTMLImageElement</dfn> : <span>HTMLElement</span> {
<p>The <span title="concept-task">task</span> that is <span
title="queue a task">queued</span> by the <span>networking task
source</span> once the resource has been <span
title="fetch">fetched</span>, must, if the download was successful
and the image is <i title="img-available">available</i>, <span>queue
a task</span> to <span>fire a simple event</span> called <code
title="event-load">load</code> at the <code>img</code> element (this
happens after <code title="dom-img-complete">complete</code> starts
returning true); and otherwise, if the fetching process fails
without a response from the remote server, or completes but the
image is not a valid or supported image, <span>queue a task</span>
to <span>fire a simple event</span> called <code
title="event-error">error</code> on the <code>img</code>
element.</p>
title="fetch">fetched</span>, must act as appropriate given the
following alternatives:</p>

<dl class="switch">

<dt>If the download was successful and the image is <i
title="img-available">available</i></dt>

<dd><span>Queue a task</span> to <span>fire a simple event</span>
called <code title="event-load">load</code> at the <code>img</code>
element (this happens after <code
title="dom-img-complete">complete</code> starts returning
true).</dd>

<dt>Otherwise (the fetching process failed without a response from
the remote server, or completed but the image is not a supported
image)</dt>

<dd><span>Queue a task</span> to <span>fire a simple event</span>
called <code title="event-error">error</code> on the
<code>img</code> element.</dd>

</dl>

<p>The <span>task source</span> for these tasks is the <span>DOM
manipulation task source</span>.</p>
Expand Down

0 comments on commit 81d9201

Please sign in to comment.