Skip to content
Permalink
Browse files

[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 0fea104d482fdcc9abfd7ebf30d60cac929a8e90
Showing with 33 additions and 31 deletions.
  1. +10 −10 complete.html
  2. +10 −10 index
  3. +13 −11 source

<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>
20 index

<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>
24 source
<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>

0 comments on commit 0fea104

Please sign in to comment.
You can’t perform that action at this time.