Bugzilla – Bug 421
Make <img src=''> a special case. (credit: bz)
Last modified: 2011-05-19 16:14:30 CEST
Index: source =================================================================== --- source (revision 2565) +++ source (revision 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,8 +15633,15 @@ 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