[html5] r2566 - [acgiow] (2) Make <img src=''> a special case. (credit: bz)

whatwg at whatwg.org whatwg at whatwg.org
Wed Dec 24 03:04:24 PST 2008


Author: ianh
Date: 2008-12-24 03:04:23 -0800 (Wed, 24 Dec 2008)
New Revision: 2566

Modified:
   index
   source
Log:
[acgiow] (2) Make <img src=''> a special case. (credit: bz)

Modified: index
===================================================================
--- index	2008-12-24 10:26:57 UTC (rev 2565)
+++ index	2008-12-24 11:04:23 UTC (rev 2566)
@@ -14600,7 +14600,9 @@
   <p>The <code title=attr-img-src><a href=#attr-img-src>src</a></code> attribute must be
   present, and must contain a <a href=#valid-url>valid URL</a> referencing a
   non-interactive, optionally animated, image resource that is neither
-  paged nor scripted.</p>
+  paged nor scripted. If the <i>base URI of the element</i> is the
+  same as <a href="#the-document's-address">the document's address</a>, then the <code title=attr-img-src><a href=#attr-img-src>src</a></code> attribute's value must not be the
+  empty string.</p>
 
   <p class=note>Images can thus be static bitmaps (e.g. PNGs, GIFs,
   JPEGs), single-page vector documents (single-page PDFs, XML files
@@ -14628,9 +14630,16 @@
   user agent must <a href=#fetch>fetch</a> the resource specifed by the
   <code title=attr-img-src><a href=#attr-img-src>src</a></code> attribute's value, unless the
   user agent cannot support images, or its support for images has been
-  disabled, or the user agent only fetches elements on demand.</p>
-  <!-- Note how this does NOT happen when the base URL changes. -->
+  disabled, or the user agent only fetches elements on demand, or the
+  element's <code title=attr-img-src><a href=#attr-img-src>src</a></code> attribute has a
+  value that is an <i>ignored self-reference</i>.</p> <!-- Note how
+  this does NOT happen when the base URL changes. -->
 
+  <p>The <code title=attr-img-src><a href=#attr-img-src>src</a></code> attribute's value is an
+  <i>ignored self-reference</i> if its value is the empty string, and
+  the <i>base URI of the element</i> is the same as <a href="#the-document's-address">the
+  document's address</a>.</p>
+
   <p>Fetching the image must <a href=#delay-the-load-event>delay the <code title=event-load>load</code> event</a>.</p>
 
   <p class=warning>This, unfortunately, can be used to perform a
@@ -14650,6 +14659,12 @@
   the image is being <a href=#fetch title=fetch>fetched</a> must update
   the presentation of the image appropriately.</p>
 
+  <p>If the image was not fetched (e.g. because the UA's image support
+  is disabled, or because the <code title=attr-img-src><a href=#attr-img-src>src</a></code>
+  attribute's value is an <i>ignored self-reference</i>), or if the
+  conditions in the previous paragraph are not met, then the image is
+  <em>not</em> <i>available</i>.</p>
+
   <p>Whether the image is fetched successfully or not (e.g. whether
   the response code was a 2xx code <a href=#concept-http-equivalent-codes title=concept-http-equivalent-codes>or equivalent</a>) must be
   ignored when determining the image's type and whether it is a valid
@@ -14699,9 +14714,9 @@
     the content, redundant with some other information in the
     document.</p>
 
-    <p>If the image is <i>available</i> and the user agent is configured to
-    display that image, then the element represents the image
-    specified by the <code title=attr-img-src><a href=#attr-img-src>src</a></code>
+    <p>If the image is <i>available</i> and the user agent is
+    configured to display that image, then the element represents the
+    image specified by the <code title=attr-img-src><a href=#attr-img-src>src</a></code>
     attribute.</p>
 
     <p>Otherwise, the element represents nothing, and may be omitted

Modified: source
===================================================================
--- source	2008-12-24 10:26:57 UTC (rev 2565)
+++ source	2008-12-24 11:04:23 UTC (rev 2566)
@@ -15597,7 +15597,10 @@
   <p>The <code title="attr-img-src">src</code> attribute must be
   present, and must contain a <span>valid URL</span> referencing a
   non-interactive, optionally animated, image resource that is neither
-  paged nor scripted.</p>
+  paged nor scripted. If the <i>base URI of the element</i> is the
+  same as <span>the document's address</span>, then the <code
+  title="attr-img-src">src</code> attribute's value must not be the
+  empty string.</p>
 
   <p class="note">Images can thus be static bitmaps (e.g. PNGs, GIFs,
   JPEGs), single-page vector documents (single-page PDFs, XML files
@@ -15630,9 +15633,16 @@
   user agent must <span>fetch</span> the resource specifed by the
   <code title="attr-img-src">src</code> attribute's value, unless the
   user agent cannot support images, or its support for images has been
-  disabled, or the user agent only fetches elements on demand.</p>
-  <!-- Note how this does NOT happen when the base URL changes. -->
+  disabled, or the user agent only fetches elements on demand, or the
+  element's <code title="attr-img-src">src</code> attribute has a
+  value that is an <i>ignored self-reference</i>.</p> <!-- Note how
+  this does NOT happen when the base URL changes. -->
 
+  <p>The <code title="attr-img-src">src</code> attribute's value is an
+  <i>ignored self-reference</i> if its value is the empty string, and
+  the <i>base URI of the element</i> is the same as <span>the
+  document's address</span>.</p>
+
   <p>Fetching the image must <span>delay the <code
   title="event-load">load</code> event</span>.</p>
 
@@ -15654,6 +15664,12 @@
   the image is being <span title="fetch">fetched</span> must update
   the presentation of the image appropriately.</p>
 
+  <p>If the image was not fetched (e.g. because the UA's image support
+  is disabled, or because the <code title="attr-img-src">src</code>
+  attribute's value is an <i>ignored self-reference</i>), or if the
+  conditions in the previous paragraph are not met, then the image is
+  <em>not</em> <i>available</i>.</p>
+
   <p>Whether the image is fetched successfully or not (e.g. whether
   the response code was a 2xx code <span
   title="concept-http-equivalent-codes">or equivalent</span>) must be
@@ -15715,9 +15731,9 @@
     the content, redundant with some other information in the
     document.</p>
 
-    <p>If the image is <i>available</i> and the user agent is configured to
-    display that image, then the element represents the image
-    specified by the <code title="attr-img-src">src</code>
+    <p>If the image is <i>available</i> and the user agent is
+    configured to display that image, then the element represents the
+    image specified by the <code title="attr-img-src">src</code>
     attribute.</p>
 
     <p>Otherwise, the element represents nothing, and may be omitted




More information about the Commit-Watchers mailing list