[html5] r8131 - [giow] (3) Make the spec throw an exception for broken images drawn into canvas, [...]
whatwg at whatwg.org
whatwg at whatwg.org
Tue Aug 6 13:18:55 PDT 2013
Author: ianh
Date: 2013-08-06 13:18:53 -0700 (Tue, 06 Aug 2013)
New Revision: 8131
Modified:
complete.html
index
source
Log:
[giow] (3) Make the spec throw an exception for broken images drawn into canvas, like Firefox and IE do today.
Affected topics: Canvas
Modified: complete.html
===================================================================
--- complete.html 2013-08-05 20:45:13 UTC (rev 8130)
+++ complete.html 2013-08-06 20:18:53 UTC (rev 8131)
@@ -256,7 +256,7 @@
<header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
- <h2 class="no-num no-toc">Living Standard — Last Updated 5 August 2013</h2>
+ <h2 class="no-num no-toc">Living Standard — Last Updated 6 August 2013</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
@@ -35965,6 +35965,10 @@
<i>aborted</i>:</p>
<ol><li><p>If the <var title="">image</var> argument is an <code><a href=#htmlimageelement>HTMLImageElement</a></code> object that
+ is in the <a href=#img-error title=img-error>broken</a> state, then throw an
+ <code><a href=#invalidstateerror>InvalidStateError</a></code> exception, return <i>aborted</i>, and abort these steps.</p>
+
+ <li><p>If the <var title="">image</var> argument is an <code><a href=#htmlimageelement>HTMLImageElement</a></code> object that
is not <a href=#img-good title=img-good>fully decodable</a>, or if the <var title="">image</var>
argument is an <code><a href=#htmlvideoelement>HTMLVideoElement</a></code> object whose <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> attribute is either <code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code> or <code title=dom-media-HAVE_METADATA><a href=#dom-media-have_metadata>HAVE_METADATA</a></code>, then return <i>bad</i> and abort these
steps.</li>
@@ -95029,7 +95033,7 @@
:root:lang(uk), :not(:lang(uk)) > :lang(uk) { quotes: '\00ab' '\00bb' '\201e' '\201c' } /* « » „ “ */
:root:lang(ur), :not(:lang(ur)) > :lang(ur) { quotes: '\201d' '\201c' '\2019' '\2018' } /* ” “ ’ ‘ */
:root:lang(uz), :not(:lang(uz)) > :lang(uz) { quotes: '\201c' '\201d' '\2018' '\2019' } /* “ ” ‘ ’ */
-:root:lang(uz-Latn), :not(:lang(uz-Latn)) > :lang(uz-Latn) { quotes: '\201c' '\201d' '\2018' '\2019' } /* “ ” ‘ ’ */
+:root:lang(uz-Cyrl), :not(:lang(uz-Cyrl)) > :lang(uz-Cyrl) { quotes: '\201c' '\201d' '\2018' '\2019' } /* “ ” ‘ ’ */
:root:lang(vai), :not(:lang(vai)) > :lang(vai) { quotes: '\201c' '\201d' '\2018' '\2019' } /* “ ” ‘ ’ */
:root:lang(vai-Latn), :not(:lang(vai-Latn)) > :lang(vai-Latn) { quotes: '\201c' '\201d' '\2018' '\2019' } /* “ ” ‘ ’ */
:root:lang(vi), :not(:lang(vi)) > :lang(vi) { quotes: '\201c' '\201d' '\2018' '\2019' } /* “ ” ‘ ’ */
Modified: index
===================================================================
--- index 2013-08-05 20:45:13 UTC (rev 8130)
+++ index 2013-08-06 20:18:53 UTC (rev 8131)
@@ -256,7 +256,7 @@
<header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
- <h2 class="no-num no-toc">Living Standard — Last Updated 5 August 2013</h2>
+ <h2 class="no-num no-toc">Living Standard — Last Updated 6 August 2013</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
@@ -35965,6 +35965,10 @@
<i>aborted</i>:</p>
<ol><li><p>If the <var title="">image</var> argument is an <code><a href=#htmlimageelement>HTMLImageElement</a></code> object that
+ is in the <a href=#img-error title=img-error>broken</a> state, then throw an
+ <code><a href=#invalidstateerror>InvalidStateError</a></code> exception, return <i>aborted</i>, and abort these steps.</p>
+
+ <li><p>If the <var title="">image</var> argument is an <code><a href=#htmlimageelement>HTMLImageElement</a></code> object that
is not <a href=#img-good title=img-good>fully decodable</a>, or if the <var title="">image</var>
argument is an <code><a href=#htmlvideoelement>HTMLVideoElement</a></code> object whose <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> attribute is either <code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code> or <code title=dom-media-HAVE_METADATA><a href=#dom-media-have_metadata>HAVE_METADATA</a></code>, then return <i>bad</i> and abort these
steps.</li>
@@ -95029,7 +95033,7 @@
:root:lang(uk), :not(:lang(uk)) > :lang(uk) { quotes: '\00ab' '\00bb' '\201e' '\201c' } /* « » „ “ */
:root:lang(ur), :not(:lang(ur)) > :lang(ur) { quotes: '\201d' '\201c' '\2019' '\2018' } /* ” “ ’ ‘ */
:root:lang(uz), :not(:lang(uz)) > :lang(uz) { quotes: '\201c' '\201d' '\2018' '\2019' } /* “ ” ‘ ’ */
-:root:lang(uz-Latn), :not(:lang(uz-Latn)) > :lang(uz-Latn) { quotes: '\201c' '\201d' '\2018' '\2019' } /* “ ” ‘ ’ */
+:root:lang(uz-Cyrl), :not(:lang(uz-Cyrl)) > :lang(uz-Cyrl) { quotes: '\201c' '\201d' '\2018' '\2019' } /* “ ” ‘ ’ */
:root:lang(vai), :not(:lang(vai)) > :lang(vai) { quotes: '\201c' '\201d' '\2018' '\2019' } /* “ ” ‘ ’ */
:root:lang(vai-Latn), :not(:lang(vai-Latn)) > :lang(vai-Latn) { quotes: '\201c' '\201d' '\2018' '\2019' } /* “ ” ‘ ’ */
:root:lang(vi), :not(:lang(vi)) > :lang(vi) { quotes: '\201c' '\201d' '\2018' '\2019' } /* “ ” ‘ ’ */
Modified: source
===================================================================
--- source 2013-08-05 20:45:13 UTC (rev 8130)
+++ source 2013-08-06 20:18:53 UTC (rev 8131)
@@ -39102,6 +39102,10 @@
<ol>
<li><p>If the <var title="">image</var> argument is an <code>HTMLImageElement</code> object that
+ is in the <span title="img-error">broken</span> state, then throw an
+ <code>InvalidStateError</code> exception, return <i>aborted</i>, and abort these steps.</p>
+
+ <li><p>If the <var title="">image</var> argument is an <code>HTMLImageElement</code> object that
is not <span title="img-good">fully decodable</span>, or if the <var title="">image</var>
argument is an <code>HTMLVideoElement</code> object whose <code
title="dom-media-readyState">readyState</code> attribute is either <code
More information about the Commit-Watchers
mailing list