Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (1) Make setting <img crossorigin> refetch the image.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=14531

git-svn-id: http://svn.whatwg.org/webapps@6779 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 28, 2011
1 parent 3389191 commit 0fea104
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 31 deletions.
20 changes: 10 additions & 10 deletions complete.html
Expand Up @@ -22397,21 +22397,21 @@ <h4 id=the-img-element><span class=secno>4.8.1 </span>The <dfn><code>img</code><

<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>
Expand Down
20 changes: 10 additions & 10 deletions index
Expand Up @@ -22397,21 +22397,21 @@ interface <dfn id=htmlimageelement>HTMLImageElement</dfn> : <a href=#htmlelement

<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>
Expand Down
24 changes: 13 additions & 11 deletions source
Expand Up @@ -23937,22 +23937,24 @@ interface <dfn>HTMLImageElement</dfn> : <span>HTMLElement</span> {
<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>
Expand Down

0 comments on commit 0fea104

Please sign in to comment.