[html5] r6779 - [giow] (1) Make setting <img crossorigin> refetch the image. Fixing http://www.w [...]
whatwg at whatwg.org
whatwg at whatwg.org
Fri Oct 28 15:44:56 PDT 2011
Author: ianh
Date: 2011-10-28 15:44:55 -0700 (Fri, 28 Oct 2011)
New Revision: 6779
Modified:
complete.html
index
source
Log:
[giow] (1) Make setting <img crossorigin> refetch the image.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=14531
Modified: complete.html
===================================================================
--- complete.html 2011-10-28 20:25:39 UTC (rev 6778)
+++ complete.html 2011-10-28 22:44:55 UTC (rev 6779)
@@ -22397,21 +22397,21 @@
<p>A user agent that obtains images immediately must 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 is either created with a <code title=attr-img-src><a href=#attr-img-src>src</a></code> attribute, or has its <code title=attr-img-src><a href=#attr-img-src>src</a></code> attribute set, changed, or
- removed.</p> <!-- Note how this does NOT happen when the base URL
- changes. -->
+ whenever that element is either created with a <code title=attr-img-src><a href=#attr-img-src>src</a></code> attribute, or has its <code title=attr-img-src><a href=#attr-img-src>src</a></code> attribute set, changed, or removed,
+ or has its <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. -->
<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> attribute, and
- if it has not <a href=#update-the-image-data title="update the image data">updated the image
- data</a> since the last time the <code title=attr-img-src><a href=#attr-img-src>src</a></code> attribute was set. 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>
- attribute is changed or removed, 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. -->
+ 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> attribute is changed
+ or removed, and whenever the element's <code title=attr-img-crossorigin><a href=#attr-img-crossorigin>crossorigin</a></code> attribute is set,
+ changed, or removed, 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. -->
<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>
Modified: index
===================================================================
--- index 2011-10-28 20:25:39 UTC (rev 6778)
+++ index 2011-10-28 22:44:55 UTC (rev 6779)
@@ -22397,21 +22397,21 @@
<p>A user agent that obtains images immediately must 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 is either created with a <code title=attr-img-src><a href=#attr-img-src>src</a></code> attribute, or has its <code title=attr-img-src><a href=#attr-img-src>src</a></code> attribute set, changed, or
- removed.</p> <!-- Note how this does NOT happen when the base URL
- changes. -->
+ whenever that element is either created with a <code title=attr-img-src><a href=#attr-img-src>src</a></code> attribute, or has its <code title=attr-img-src><a href=#attr-img-src>src</a></code> attribute set, changed, or removed,
+ or has its <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. -->
<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> attribute, and
- if it has not <a href=#update-the-image-data title="update the image data">updated the image
- data</a> since the last time the <code title=attr-img-src><a href=#attr-img-src>src</a></code> attribute was set. 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>
- attribute is changed or removed, 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. -->
+ 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> attribute is changed
+ or removed, and whenever the element's <code title=attr-img-crossorigin><a href=#attr-img-crossorigin>crossorigin</a></code> attribute is set,
+ changed, or removed, 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. -->
<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>
Modified: source
===================================================================
--- source 2011-10-28 20:25:39 UTC (rev 6778)
+++ source 2011-10-28 22:44:55 UTC (rev 6779)
@@ -23937,22 +23937,24 @@
<span>update the image data</span> of an <code>img</code> element
whenever that element is either created with a <code
title="attr-img-src">src</code> attribute, or has its <code
- title="attr-img-src">src</code> attribute set, changed, or
- removed.</p> <!-- Note how this does NOT happen when the base URL
- changes. -->
+ title="attr-img-src">src</code> attribute set, changed, or removed,
+ or has its <code title="attr-img-crossorigin">crossorigin</code>
+ attribute set, changed, or removed.</p> <!-- Note how this does NOT
+ happen when the base URL changes. -->
<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 <code>img</code>
element has a <code title="attr-img-src">src</code> attribute, and
- if it has not <span title="update the image data">updated the image
- data</span> since the last time the <code
- title="attr-img-src">src</code> attribute was set. When an
- <code>img</code> element's <code title="attr-img-src">src</code>
- attribute is changed or removed, if the user agent only obtains
- images on demand, the <code>img</code> element must return to the
- <span title="img-none">unavailable</span> state.</p> <!-- Note how
- this does NOT happen when the base URL changes. -->
+ only if the <code>img</code> element is in the <span
+ title="img-none">unavailable</span> state. When an <code>img</code>
+ element's <code title="attr-img-src">src</code> attribute is changed
+ or removed, and whenever the element's <code
+ title="attr-img-crossorigin">crossorigin</code> attribute is set,
+ changed, or removed, if the user agent only obtains images on
+ demand, the <code>img</code> element must return to the <span
+ title="img-none">unavailable</span> state.</p> <!-- Note how this
+ does NOT happen when the base URL changes. -->
<p>When the user agent is to <dfn>update the image data</dfn> of an
<code>img</code> element, it must run the following steps:</p>
More information about the Commit-Watchers
mailing list