[html5] r8158 - [giow] (3) Avoid resolving a null URL. Affected topics: HTML
whatwg at whatwg.org
whatwg at whatwg.org
Thu Aug 29 15:13:19 PDT 2013
Author: ianh
Date: 2013-08-29 15:13:17 -0700 (Thu, 29 Aug 2013)
New Revision: 8158
Modified:
complete.html
index
source
Log:
[giow] (3) Avoid resolving a null URL.
Affected topics: HTML
Modified: complete.html
===================================================================
--- complete.html 2013-08-29 22:01:24 UTC (rev 8157)
+++ complete.html 2013-08-29 22:13:17 UTC (rev 8158)
@@ -22638,19 +22638,25 @@
<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>
- <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-img-crossorigin><a href=#attr-img-crossorigin>crossorigin</a></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>
+ <p>If <var title="">selected source</var> is not null, run these substeps:</p>
- <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>
+ <ol><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-img-crossorigin><a href=#attr-img-crossorigin>crossorigin</a></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>
+
+ </ol></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> consists of all the remaining steps of this algorithm until the algorithm says the
<a href=#synchronous-section>synchronous section</a> has ended. (Steps in <a href=#synchronous-section title="synchronous
Modified: index
===================================================================
--- index 2013-08-29 22:01:24 UTC (rev 8157)
+++ index 2013-08-29 22:13:17 UTC (rev 8158)
@@ -22638,19 +22638,25 @@
<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>
- <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-img-crossorigin><a href=#attr-img-crossorigin>crossorigin</a></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>
+ <p>If <var title="">selected source</var> is not null, run these substeps:</p>
- <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>
+ <ol><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-img-crossorigin><a href=#attr-img-crossorigin>crossorigin</a></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>
+
+ </ol></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> consists of all the remaining steps of this algorithm until the algorithm says the
<a href=#synchronous-section>synchronous section</a> has ended. (Steps in <a href=#synchronous-section title="synchronous
Modified: source
===================================================================
--- source 2013-08-29 22:01:24 UTC (rev 8157)
+++ source 2013-08-29 22:13:17 UTC (rev 8158)
@@ -23670,20 +23670,30 @@
title="">selected source</var> and the <code>img</code> element's <span>current pixel
density</span> be <var title="">selected pixel density</var>.</p></li>
- <li><p><span title="resolve a url">Resolve</span> <var title="">selected source</var>, relative
- to the element. If that is not successful, abort these steps.</p></li>
+ <li>
- <li><p>Let <var title="">key</var> be a tuple consisting of the resulting <span>absolute
- URL</span>, the <code>img</code> element's <code title="attr-img-crossorigin">crossorigin</code>
- attribute's mode, and, if that mode is not <span title="attr-crossorigin-none">No CORS</span>,
- the <code>Document</code> object's <span>origin</span>.</p></li>
+ <p>If <var title="">selected source</var> is not null, run these substeps:</p>
- <li><p>If the <span>list of available images</span> contains an entry for <var
- title="">key</var>, then set the <code>img</code> element to the <span title="img-all">completely
- available</span> state, update the presentation of the image appropriately, <span>queue a
- task</span> to <span>fire a simple event</span> named <code title="event-load">load</code> at the
- <code>img</code> element, and abort these steps.</p></li>
+ <ol>
+ <li><p><span title="resolve a url">Resolve</span> <var title="">selected source</var>, relative
+ to the element. If that is not successful, abort these steps.</p></li>
+
+ <li><p>Let <var title="">key</var> be a tuple consisting of the resulting <span>absolute
+ URL</span>, the <code>img</code> element's <code title="attr-img-crossorigin">crossorigin</code>
+ attribute's mode, and, if that mode is not <span title="attr-crossorigin-none">No CORS</span>,
+ the <code>Document</code> object's <span>origin</span>.</p></li>
+
+ <li><p>If the <span>list of available images</span> contains an entry for <var
+ title="">key</var>, then set the <code>img</code> element to the <span title="img-all">completely
+ available</span> state, update the presentation of the image appropriately, <span>queue a
+ task</span> to <span>fire a simple event</span> named <code title="event-load">load</code> at the
+ <code>img</code> element, and abort these steps.</p></li>
+
+ </ol>
+
+ </li>
+
<li><p>Asynchronously <span>await a stable state</span>, allowing the <span
title="concept-task">task</span> that invoked this algorithm to continue. The <span>synchronous
section</span> consists of all the remaining steps of this algorithm until the algorithm says the
More information about the Commit-Watchers
mailing list