W3C home > Mailing lists > Public > public-html-commits@w3.org > June 2012

html5/spec Overview.html,1.5679,1.5680

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 11 Jun 2012 20:53:40 +0000
To: public-html-commits@w3.org
Message-Id: <E1SeBcL-0000ld-4c@lionel-hutz.w3.org>
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv2930

Modified Files:
	Overview.html 
Log Message:
Try to define img synchronous loading. (whatwg r7128)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5679
retrieving revision 1.5680
diff -u -d -r1.5679 -r1.5680
--- Overview.html	8 Jun 2012 21:50:24 -0000	1.5679
+++ Overview.html	11 Jun 2012 20:53:36 -0000	1.5680
@@ -321,7 +321,7 @@
 
    <h1>HTML5</h1>
    <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-   <h2 class="no-num no-toc" id="editor-s-draft-8-june-2012">Editor's Draft 8 June 2012</h2>
+   <h2 class="no-num no-toc" id="editor-s-draft-11-june-2012">Editor's Draft 11 June 2012</h2>
    <dl><dt>Latest Published Version:</dt>
     <dd><a href="http://www.w3.org/TR/html5/">http://www.w3.org/TR/html5/</a></dd>
     <dt>Latest Editor's Draft:</dt>
@@ -514,7 +514,7 @@
   Group</a> is the W3C working group responsible for this
   specification's progress along the W3C Recommendation
   track.
-  This specification is the 8 June 2012 Editor's Draft.
+  This specification is the 11 June 2012 Editor's Draft.
   </p>
 
 
@@ -22400,6 +22400,18 @@
   per CSS inch, and thus if the image data is 300x600, it has an
   intrinsic dimension of 96 CSS pixels by 192 CSS pixels.</p>
 
+  <p>Each <code><a href="#document">Document</a></code> object must have a <dfn id="list-of-available-images">list of
+  available images</dfn>. Each image in this list is identified by a
+  tuple consisting of an <a href="#absolute-url">absolute URL</a>, a <a href="#cors-settings-attribute">CORS
+  settings attribute</a> mode, and, if the mode is not <a href="#attr-crossorigin-none" title="attr-crossorigin-none">No CORS</a>, an
+  <a href="#origin">origin</a>. User agents may copy entries from one
+  <code><a href="#document">Document</a></code> object's <a href="#list-of-available-images">list of available images</a>
+  to another at any time (e.g. when the <code><a href="#document">Document</a></code> is
+  created, user agents can add to it all the images that are loaded in
+  other <code><a href="#document">Document</a></code>s), but must not change the keys of
+  entries copied in this way when doing so. User agents may also
+  remove images from such lists at any time (e.g. to save memory).</p>
+
   <p>When the user agent is to <dfn id="update-the-image-data">update the image data</dfn> of an
   <code><a href="#the-img-element">img</a></code> element, it must run the following steps:</p>
 
@@ -22416,6 +22428,39 @@
    <li><p>If the user agent cannot support images, or its support for
    images has been disabled, then abort these steps.</li>
 
+   <li>
+
+
+    Otherwise, if the element has a <code title="attr-img-src"><a href="#attr-img-src">src</a></code> attribute specified and its value
+    is not the empty string, let <var title="">selected source</var>
+    be the value of the element's <code title="attr-img-src"><a href="#attr-img-src">src</a></code> attribute, and <var title="">selected pixel density</var> be 1.0. Otherwise, let <var title="">selected source</var> be null and <var title="">selected
+    pixel density</var> be undefined.
+
+   </li>
+
+   <li><p>Let the <code><a href="#the-img-element">img</a></code> element's <a href="#last-selected-source">last selected
+   source</a> be <var title="">selected source</var> and the
+   <code><a href="#the-img-element">img</a></code> element's <a href="#current-pixel-density">current pixel density</a> be
+   <var title="">selected pixel density</var>.</li>
+
+   <li><p><a href="#resolve-a-url" title="resolve a url">Resolve</a> <var title="">selected source</var>, relative to the element. If that is
+   not successful, abort these steps.</li>
+
+   <li><p>Let <var title="">key</var> be a tuple consisting of the
+   resulting <a href="#absolute-url">absolute URL</a>, the <code><a href="#the-img-element">img</a></code> element's
+   <code title="attr-crossorigin">crossorigin</code> attribute's mode,
+   and, if that mode is not <a href="#attr-crossorigin-none" title="attr-crossorigin-none">No
+   CORS</a>, the <code><a href="#document">Document</a></code> object's
+   <a href="#origin">origin</a>.</li>
+
+   <li><p>If the <a href="#list-of-available-images">list of available images</a>, contains an
+   entry for <var title="">key</var>, then set the <code><a href="#the-img-element">img</a></code>
+   element to the <a href="#img-all" title="img-all">completely available</a>
+   state, update the presentation of the image appropriately,
+   <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire a simple event</a> named
+   <code title="event-load">load</code> at the <code><a href="#the-img-element">img</a></code>
+   element, and abort these steps.</li>
+
    <li><p>Asynchronously <a href="#await-a-stable-state">await a stable state</a>, allowing
    the <a href="#concept-task" title="concept-task">task</a> that invoked this
    algorithm to continue. The <a href="#synchronous-section">synchronous section</a>
@@ -22427,8 +22472,8 @@
    <li>
 
     <p>&#8987; If another instance of this algorithm for this
-    <code><a href="#the-img-element">img</a></code> element was started after this instance, then
-    abort these steps.</p>
+    <code><a href="#the-img-element">img</a></code> element was started after this instance (even if
+    it aborted and is no longer running), then abort these steps.</p>
 
     <p class="note">Only the last instance takes effect, to avoid
     multiple requests when, for example, the
@@ -22440,23 +22485,6 @@
 
    <li>
 
-    <p>&#8987;
-
-
-    Otherwise, if the element has a <code title="attr-img-src"><a href="#attr-img-src">src</a></code> attribute specified and its value
-    is not the empty string, let <var title="">selected source</var>
-    be the value of the element's <code title="attr-img-src"><a href="#attr-img-src">src</a></code> attribute, and <var title="">selected pixel density</var> be 1.0. Otherwise, let <var title="">selected source</var> be null and <var title="">selected
-    pixel density</var> be undefined.</p>
-
-   </li>
-
-   <li><p>&#8987; Let the <code><a href="#the-img-element">img</a></code> element's <a href="#last-selected-source">last
-   selected source</a> be <var title="">selected source</var> and
-   the <code><a href="#the-img-element">img</a></code> element's <a href="#current-pixel-density">current pixel density</a>
-   be <var title="">selected pixel density</var>.</li>
-
-   <li>
-
     <p>&#8987; If <var title="">selected source</var> is null, then
     set the element to the <a href="#img-error" title="img-error">broken</a>
     state, <a href="#queue-a-task">queue a task</a> to <a href="#fire-a-simple-event">fire a simple
@@ -22467,13 +22495,9 @@
 
    <li>
 
-    <p>&#8987; <a href="#resolve-a-url" title="resolve a url">Resolve</a> <var title="">selected source</var>, relative to the element.</p>
-
-    <p>If that is not successful, abort these steps.</p>
-
-    <p>Otherwise, do a <a href="#potentially-cors-enabled-fetch">potentially CORS-enabled fetch</a> of
-    the resulting <a href="#absolute-url">absolute URL</a>, with the <i>mode</i>
-    being the state of the element's <code title="attr-img-crossorigin"><a href="#attr-img-crossorigin">crossorigin</a></code> content attribute,
+    <p>Do a <a href="#potentially-cors-enabled-fetch">potentially CORS-enabled fetch</a> of the
+    <a href="#absolute-url">absolute URL</a> that resulted from the earlier step,
+    with the <i>mode</i> being the state of the element's <code title="attr-img-crossorigin"><a href="#attr-img-crossorigin">crossorigin</a></code> content attribute,
     the <i title="">origin</i> being the <a href="#origin">origin</a> of the
     <code><a href="#the-img-element">img</a></code> element's <code><a href="#document">Document</a></code>, and the
     <i>default origin behaviour</i> set to <i>taint</i>.</p>
@@ -22514,9 +22538,10 @@
     <dl class="switch"><dt>If the download was successful</dt>
 
      <dd>Set the <code><a href="#the-img-element">img</a></code> element to the <a href="#img-all" title="img-all">completely available</a> state, update the
-     presentation of the image appropriately, and <a href="#fire-a-simple-event">fire a simple
-     event</a> named <code title="event-load">load</code> at the
-     <code><a href="#the-img-element">img</a></code> element.</dd>
+     presentation of the image appropriately, add the image to the
+     <a href="#list-of-available-images">list of available images</a> using the key <var title="">key</var>, and <a href="#fire-a-simple-event">fire a simple event</a> named
+     <code title="event-load">load</code> at the <code><a href="#the-img-element">img</a></code>
+     element.</dd>
 
      
 
Received on Monday, 11 June 2012 20:53:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 11 June 2012 20:53:45 GMT