[html5] r8509 - [giow] (3) Make <img> reload if inserting it into a new doc causes the URL to ch [...]
whatwg at whatwg.org
whatwg at whatwg.org
Mon Feb 24 14:53:42 PST 2014
Author: ianh
Date: 2014-02-24 14:53:41 -0800 (Mon, 24 Feb 2014)
New Revision: 8509
Modified:
complete.html
index
source
Log:
[giow] (3) Make <img> reload if inserting it into a new doc causes the URL to change (note that exactly what this does depends on whether the browser's 'list of available images' is maintained per-Doc, or whether there's only one list per origin)
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=24312
Affected topics: DOM APIs, HTML
Modified: complete.html
===================================================================
--- complete.html 2014-02-24 18:44:50 UTC (rev 8508)
+++ complete.html 2014-02-24 22:53:41 UTC (rev 8509)
@@ -3730,6 +3730,7 @@
<li>The <dfn id=concept-node-insert title=concept-node-insert>insert</dfn>, <dfn id=concept-node-append title=concept-node-append>append</dfn>, <dfn id=concept-node-remove title=concept-node-remove>remove</dfn>, <dfn id=concept-node-replace title=concept-node-replace>replace</dfn>, and <dfn id=concept-node-adopt title=concept-node-adopt>adopt</dfn> algorithms for nodes</li>
<li>The <dfn id=nodes-are-inserted>nodes are inserted</dfn> and <dfn id=nodes-are-removed>nodes are removed</dfn> concepts</li>
+ <li>An element's <dfn id=concept-node-adopt-ext title=concept-node-adopt-ext>adopting steps</dfn></li>
<li>The <dfn id=attribute-list>attribute list</dfn> concept.</li>
<li>The <dfn id=concept-cd-data title=concept-cd-data>data</dfn> of a text node.</li>
@@ -20928,13 +20929,15 @@
data</a> of an <code><a href=#the-img-element>img</a></code> element whenever that element is created with a <code title=attr-img-src><a href=#attr-img-src>src</a></code> attribute, a <code title=attr-img-srcset><a href=#attr-img-srcset>srcset</a></code>
attribute, or both. A user agent that obtains images immediately must also synchronously
<a href=#update-the-image-data>update the image data</a> of an <code><a href=#the-img-element>img</a></code> element whenever that element has its
- <code title=attr-img-src><a href=#attr-img-src>src</a></code>, <code title=attr-img-srcset><a href=#attr-img-srcset>srcset</a></code>, or <code title=attr-img-crossorigin><a href=#attr-img-crossorigin>crossorigin</a></code> attribute set, changed, or removed.</p> <!-- Note
- how this does NOT happen when the base URL changes. -->
+ <code title=attr-img-src><a href=#attr-img-src>src</a></code>, <code title=attr-img-srcset><a href=#attr-img-srcset>srcset</a></code>, or <code title=attr-img-crossorigin><a href=#attr-img-crossorigin>crossorigin</a></code> attribute set, changed, or removed, and whenever
+ that element's <a href=#concept-node-adopt-ext title=concept-node-adopt-ext>adopting steps</a> are run.</p> <!-- Note
+ how this does NOT happen when the base URL changes (except for when adopted into a new doc) -->
<p>A user agent that obtains images on demand must <a href=#update-the-image-data>update the image data</a> of an
<code><a href=#the-img-element>img</a></code> element whenever it needs the image data (i.e. on demand), but only if the
<code><a href=#the-img-element>img</a></code> element has a <code title=attr-img-src><a href=#attr-img-src>src</a></code> or <code title=attr-img-src><a href=#attr-img-src>srcset</a></code> attribute, and only if the <code><a href=#the-img-element>img</a></code> element is in the
- <a href=#img-none title=img-none>unavailable</a> state. When an <code><a href=#the-img-element>img</a></code> element's <code title=attr-img-src><a href=#attr-img-src>src</a></code>, <code title=attr-img-srcset><a href=#attr-img-srcset>srcset</a></code>, or <code title=attr-img-crossorigin><a href=#attr-img-crossorigin>crossorigin</a></code> attribute set, changed, or removed, if the user
+ <a href=#img-none title=img-none>unavailable</a> state. When an <code><a href=#the-img-element>img</a></code> element's <code title=attr-img-src><a href=#attr-img-src>src</a></code>, <code title=attr-img-srcset><a href=#attr-img-srcset>srcset</a></code>, or <code title=attr-img-crossorigin><a href=#attr-img-crossorigin>crossorigin</a></code> attribute set, changed, or removed, and whenever
+ that element's <a href=#concept-node-adopt-ext title=concept-node-adopt-ext>adopting steps</a> are run, if the user
agent only obtains images on demand, the <code><a href=#the-img-element>img</a></code> element must return to the <a href=#img-none title=img-none>unavailable</a> state.</p> <!-- Note how this does NOT happen when the base
URL changes. -->
Modified: index
===================================================================
--- index 2014-02-24 18:44:50 UTC (rev 8508)
+++ index 2014-02-24 22:53:41 UTC (rev 8509)
@@ -3730,6 +3730,7 @@
<li>The <dfn id=concept-node-insert title=concept-node-insert>insert</dfn>, <dfn id=concept-node-append title=concept-node-append>append</dfn>, <dfn id=concept-node-remove title=concept-node-remove>remove</dfn>, <dfn id=concept-node-replace title=concept-node-replace>replace</dfn>, and <dfn id=concept-node-adopt title=concept-node-adopt>adopt</dfn> algorithms for nodes</li>
<li>The <dfn id=nodes-are-inserted>nodes are inserted</dfn> and <dfn id=nodes-are-removed>nodes are removed</dfn> concepts</li>
+ <li>An element's <dfn id=concept-node-adopt-ext title=concept-node-adopt-ext>adopting steps</dfn></li>
<li>The <dfn id=attribute-list>attribute list</dfn> concept.</li>
<li>The <dfn id=concept-cd-data title=concept-cd-data>data</dfn> of a text node.</li>
@@ -20928,13 +20929,15 @@
data</a> of an <code><a href=#the-img-element>img</a></code> element whenever that element is created with a <code title=attr-img-src><a href=#attr-img-src>src</a></code> attribute, a <code title=attr-img-srcset><a href=#attr-img-srcset>srcset</a></code>
attribute, or both. A user agent that obtains images immediately must also synchronously
<a href=#update-the-image-data>update the image data</a> of an <code><a href=#the-img-element>img</a></code> element whenever that element has its
- <code title=attr-img-src><a href=#attr-img-src>src</a></code>, <code title=attr-img-srcset><a href=#attr-img-srcset>srcset</a></code>, or <code title=attr-img-crossorigin><a href=#attr-img-crossorigin>crossorigin</a></code> attribute set, changed, or removed.</p> <!-- Note
- how this does NOT happen when the base URL changes. -->
+ <code title=attr-img-src><a href=#attr-img-src>src</a></code>, <code title=attr-img-srcset><a href=#attr-img-srcset>srcset</a></code>, or <code title=attr-img-crossorigin><a href=#attr-img-crossorigin>crossorigin</a></code> attribute set, changed, or removed, and whenever
+ that element's <a href=#concept-node-adopt-ext title=concept-node-adopt-ext>adopting steps</a> are run.</p> <!-- Note
+ how this does NOT happen when the base URL changes (except for when adopted into a new doc) -->
<p>A user agent that obtains images on demand must <a href=#update-the-image-data>update the image data</a> of an
<code><a href=#the-img-element>img</a></code> element whenever it needs the image data (i.e. on demand), but only if the
<code><a href=#the-img-element>img</a></code> element has a <code title=attr-img-src><a href=#attr-img-src>src</a></code> or <code title=attr-img-src><a href=#attr-img-src>srcset</a></code> attribute, and only if the <code><a href=#the-img-element>img</a></code> element is in the
- <a href=#img-none title=img-none>unavailable</a> state. When an <code><a href=#the-img-element>img</a></code> element's <code title=attr-img-src><a href=#attr-img-src>src</a></code>, <code title=attr-img-srcset><a href=#attr-img-srcset>srcset</a></code>, or <code title=attr-img-crossorigin><a href=#attr-img-crossorigin>crossorigin</a></code> attribute set, changed, or removed, if the user
+ <a href=#img-none title=img-none>unavailable</a> state. When an <code><a href=#the-img-element>img</a></code> element's <code title=attr-img-src><a href=#attr-img-src>src</a></code>, <code title=attr-img-srcset><a href=#attr-img-srcset>srcset</a></code>, or <code title=attr-img-crossorigin><a href=#attr-img-crossorigin>crossorigin</a></code> attribute set, changed, or removed, and whenever
+ that element's <a href=#concept-node-adopt-ext title=concept-node-adopt-ext>adopting steps</a> are run, if the user
agent only obtains images on demand, the <code><a href=#the-img-element>img</a></code> element must return to the <a href=#img-none title=img-none>unavailable</a> state.</p> <!-- Note how this does NOT happen when the base
URL changes. -->
Modified: source
===================================================================
--- source 2014-02-24 18:44:50 UTC (rev 8508)
+++ source 2014-02-24 22:53:41 UTC (rev 8509)
@@ -2448,6 +2448,7 @@
<li>The <dfn data-x="concept-node-insert">insert</dfn>, <dfn data-x="concept-node-append">append</dfn>, <dfn data-x="concept-node-remove">remove</dfn>, <dfn data-x="concept-node-replace">replace</dfn>, and <dfn data-x="concept-node-adopt">adopt</dfn> algorithms for nodes</li>
<li>The <dfn>nodes are inserted</dfn> and <dfn>nodes are removed</dfn> concepts</li>
+ <li>An element's <dfn data-x="concept-node-adopt-ext">adopting steps</dfn></li>
<li>The <dfn>attribute list</dfn> concept.</li>
<li>The <dfn data-x="concept-cd-data">data</dfn> of a text node.</li>
@@ -21873,8 +21874,9 @@
attribute, or both. A user agent that obtains images immediately must also synchronously
<span>update the image data</span> of an <code>img</code> element whenever that element has its
<code data-x="attr-img-src">src</code>, <code data-x="attr-img-srcset">srcset</code>, or <code
- data-x="attr-img-crossorigin">crossorigin</code> attribute set, changed, or removed.</p> <!-- Note
- how this does NOT happen when the base URL changes. -->
+ data-x="attr-img-crossorigin">crossorigin</code> attribute set, changed, or removed, and whenever
+ that element's <span data-x="concept-node-adopt-ext">adopting steps</span> are run.</p> <!-- Note
+ how this does NOT happen when the base URL changes (except for when adopted into a new doc) -->
<p>A user agent that obtains images on demand must <span>update the image data</span> of an
<code>img</code> element whenever it needs the image data (i.e. on demand), but only if the
@@ -21882,7 +21884,8 @@
data-x="attr-img-src">srcset</code> attribute, and only if the <code>img</code> element is in the
<span data-x="img-none">unavailable</span> state. When an <code>img</code> element's <code
data-x="attr-img-src">src</code>, <code data-x="attr-img-srcset">srcset</code>, or <code
- data-x="attr-img-crossorigin">crossorigin</code> attribute set, changed, or removed, if the user
+ data-x="attr-img-crossorigin">crossorigin</code> attribute set, changed, or removed, and whenever
+ that element's <span data-x="concept-node-adopt-ext">adopting steps</span> are run, if the user
agent only obtains images on demand, the <code>img</code> element must return to the <span
data-x="img-none">unavailable</span> state.</p> <!-- Note how this does NOT happen when the base
URL changes. -->
More information about the Commit-Watchers
mailing list