[html5] r3149 - [e] (0) Fix grammatically confusing sentence. (bug 6759)

whatwg at whatwg.org whatwg at whatwg.org
Thu May 28 18:27:03 PDT 2009


Author: ianh
Date: 2009-05-28 18:27:01 -0700 (Thu, 28 May 2009)
New Revision: 3149

Modified:
   index
   source
Log:
[e] (0) Fix grammatically confusing sentence. (bug 6759)

Modified: index
===================================================================
--- index	2009-05-29 00:48:18 UTC (rev 3148)
+++ index	2009-05-29 01:27:01 UTC (rev 3149)
@@ -17467,17 +17467,25 @@
   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>

Modified: source
===================================================================
--- source	2009-05-29 00:48:18 UTC (rev 3148)
+++ source	2009-05-29 01:27:01 UTC (rev 3149)
@@ -18714,18 +18714,30 @@
   <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>
 




More information about the Commit-Watchers mailing list