Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

...
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Commits on Apr 22, 2013
ianh [e] (0) Clarify what we mean by 'poster frame' of an animation.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=21296
Affected topics: Canvas, DOM APIs

git-svn-id: http://svn.whatwg.org/webapps@7847 340c8d12-0b0e-0410-8428-c7bf67bfef74
5eb5e2b
Commits on Apr 23, 2013
ianh [e] (0) Be clearer about how preparsing handles running out of bytes.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=21312
Affected topics: HTML Syntax and Parsing

git-svn-id: http://svn.whatwg.org/webapps@7848 340c8d12-0b0e-0410-8428-c7bf67bfef74
a9ffe89
Showing with 51 additions and 32 deletions.
  1. +17 −11 complete.html
  2. +17 −11 index
  3. +17 −10 source
28 complete.html
View
@@ -248,7 +248,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
- <h2 class="no-num no-toc">Living Standard &mdash; Last Updated 22 April 2013</h2>
+ <h2 class="no-num no-toc">Living Standard &mdash; Last Updated 23 April 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>
@@ -35642,8 +35642,9 @@ <h6 id=image-sources-for-2d-rendering-contexts><span class=secno>4.8.11.2.9 </sp
element's image must be used as the source image.</p>
<p>Specifically, when a <code><a href=#canvasimagesource>CanvasImageSource</a></code> object represents an animated image in an
- <code><a href=#htmlimageelement>HTMLImageElement</a></code>, the user agent must use the poster frame of the animation, or, if
- there is no poster frame, the first frame of the animation, when rendering the image for
+ <code><a href=#htmlimageelement>HTMLImageElement</a></code>, the user agent must use the default image of the animation (the
+ one that the format defines is to be used when animation is not supported or is disabled), or, if
+ there is no such image, the first frame of the animation, when rendering the image for
<code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> APIs.</p>
<p>When a <code><a href=#canvasimagesource>CanvasImageSource</a></code> object represents an <code><a href=#htmlvideoelement>HTMLVideoElement</a></code>, then
@@ -57107,6 +57108,7 @@ <h4 id=the-dialog-element><span class=secno>4.11.7 </span>The <dfn><code>dialog<
</dl><div class=impl>
+<!--CLEANUP-->
<p>When the <dfn id=dom-dialog-show title=dom-dialog-show><code>show()</code></dfn>
method is invoked, the user agent must run the following steps:</p>
@@ -73698,8 +73700,9 @@ <h3 id=images><span class=secno>7.6 </span>Images</h3>
<li><p>Let the <code><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data be a copy of the <code><a href=#the-img-element>img</a></code>
element's media data, <a href=#cropped-to-the-source-rectangle>cropped to the source rectangle</a>. If this is an animated
- image, the <code><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data must only be taken from the
- animation's poster frame, or, if there is no poster frame, the first frame of the
+ image, the <code><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data must only be taken from the default
+ image of the animation (the one that the format defines is to be used when animation is not
+ supported or is disabled), or, if there is no such image, the first frame of the
animation.</li>
<li><p>Return, but continue running these steps asynchronously.</li>
@@ -73801,8 +73804,9 @@ <h3 id=images><span class=secno>7.6 </span>Images</h3>
<li><p>Let the <code><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data be the image data read from the
<code><a href=#blob>Blob</a></code> object, <a href=#cropped-to-the-source-rectangle>cropped to the source rectangle</a>. If this is an animated
- image, the <code><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data must only be taken from the
- animation's poster frame, or, if there is no poster frame, the first frame of the
+ image, the <code><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data must only be taken from the default
+ image of the animation (the one that the format defines is to be used when animation is not
+ supported or is disabled), or, if there is no such image, the first frame of the
animation.</li>
<li><p><a href=#queue-a-task>Queue a task</a> to invoke <var title="">callback</var> with the new
@@ -84422,14 +84426,16 @@ <h5 id=determining-the-character-encoding><span class=secno>12.2.2.1 </span>Dete
<hr><p>When an algorithm requires a user agent to <dfn id=prescan-a-byte-stream-to-determine-its-encoding>prescan a byte stream to determine its
encoding</dfn>, given some defined <var title="">end condition</var>, then it must run the
- following steps. These steps either abort unsuccessfully or return a character encoding.</p>
+ following steps. These steps either abort unsuccessfully or return a character encoding. If at any
+ point during these steps (including during instances of the <span>get an attribute</span>
+ algorithm invoked by this one) the user agent either runs out of bytes (meaning the <var title="">position</var> pointer created in the first step below goes beyond the end of the byte
+ stream obtained so far) or reaches its <var title="">end condition</var>, then abort the
+ <a href=#prescan-a-byte-stream-to-determine-its-encoding>prescan a byte stream to determine its encoding</a> algorithm unsuccessfully.</p>
<ol><li>
<p>Let <var title="">position</var> be a pointer to a byte in the input byte stream, initially
- pointing at the first byte. If at any point during these steps the user agent either runs out of
- bytes or reaches its <var title="">end condition</var>, then abort the <a href=#prescan-a-byte-stream-to-determine-its-encoding>prescan a byte
- stream to determine its encoding</a> algorithm unsuccessfully.</p>
+ pointing at the first byte.</p>
</li>
28 index
View
@@ -248,7 +248,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
- <h2 class="no-num no-toc">Living Standard &mdash; Last Updated 22 April 2013</h2>
+ <h2 class="no-num no-toc">Living Standard &mdash; Last Updated 23 April 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>
@@ -35642,8 +35642,9 @@ try {
element's image must be used as the source image.</p>
<p>Specifically, when a <code><a href=#canvasimagesource>CanvasImageSource</a></code> object represents an animated image in an
- <code><a href=#htmlimageelement>HTMLImageElement</a></code>, the user agent must use the poster frame of the animation, or, if
- there is no poster frame, the first frame of the animation, when rendering the image for
+ <code><a href=#htmlimageelement>HTMLImageElement</a></code>, the user agent must use the default image of the animation (the
+ one that the format defines is to be used when animation is not supported or is disabled), or, if
+ there is no such image, the first frame of the animation, when rendering the image for
<code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> APIs.</p>
<p>When a <code><a href=#canvasimagesource>CanvasImageSource</a></code> object represents an <code><a href=#htmlvideoelement>HTMLVideoElement</a></code>, then
@@ -57107,6 +57108,7 @@ dictionary <dfn id=relatedeventinit>RelatedEventInit</dfn> : <a href=#eventinit>
</dl><div class=impl>
+<!--CLEANUP-->
<p>When the <dfn id=dom-dialog-show title=dom-dialog-show><code>show()</code></dfn>
method is invoked, the user agent must run the following steps:</p>
@@ -73698,8 +73700,9 @@ interface <dfn id=imagebitmapfactories>ImageBitmapFactories</dfn> {
<li><p>Let the <code><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data be a copy of the <code><a href=#the-img-element>img</a></code>
element's media data, <a href=#cropped-to-the-source-rectangle>cropped to the source rectangle</a>. If this is an animated
- image, the <code><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data must only be taken from the
- animation's poster frame, or, if there is no poster frame, the first frame of the
+ image, the <code><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data must only be taken from the default
+ image of the animation (the one that the format defines is to be used when animation is not
+ supported or is disabled), or, if there is no such image, the first frame of the
animation.</li>
<li><p>Return, but continue running these steps asynchronously.</li>
@@ -73801,8 +73804,9 @@ interface <dfn id=imagebitmapfactories>ImageBitmapFactories</dfn> {
<li><p>Let the <code><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data be the image data read from the
<code><a href=#blob>Blob</a></code> object, <a href=#cropped-to-the-source-rectangle>cropped to the source rectangle</a>. If this is an animated
- image, the <code><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data must only be taken from the
- animation's poster frame, or, if there is no poster frame, the first frame of the
+ image, the <code><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data must only be taken from the default
+ image of the animation (the one that the format defines is to be used when animation is not
+ supported or is disabled), or, if there is no such image, the first frame of the
animation.</li>
<li><p><a href=#queue-a-task>Queue a task</a> to invoke <var title="">callback</var> with the new
@@ -84422,14 +84426,16 @@ dictionary <dfn id=storageeventinit>StorageEventInit</dfn> : <a href=#eventinit>
<hr><p>When an algorithm requires a user agent to <dfn id=prescan-a-byte-stream-to-determine-its-encoding>prescan a byte stream to determine its
encoding</dfn>, given some defined <var title="">end condition</var>, then it must run the
- following steps. These steps either abort unsuccessfully or return a character encoding.</p>
+ following steps. These steps either abort unsuccessfully or return a character encoding. If at any
+ point during these steps (including during instances of the <span>get an attribute</span>
+ algorithm invoked by this one) the user agent either runs out of bytes (meaning the <var title="">position</var> pointer created in the first step below goes beyond the end of the byte
+ stream obtained so far) or reaches its <var title="">end condition</var>, then abort the
+ <a href=#prescan-a-byte-stream-to-determine-its-encoding>prescan a byte stream to determine its encoding</a> algorithm unsuccessfully.</p>
<ol><li>
<p>Let <var title="">position</var> be a pointer to a byte in the input byte stream, initially
- pointing at the first byte. If at any point during these steps the user agent either runs out of
- bytes or reaches its <var title="">end condition</var>, then abort the <a href=#prescan-a-byte-stream-to-determine-its-encoding>prescan a byte
- stream to determine its encoding</a> algorithm unsuccessfully.</p>
+ pointing at the first byte.</p>
</li>
27 source
View
@@ -38738,8 +38738,9 @@ try {
element's image must be used as the source image.</p>
<p>Specifically, when a <code>CanvasImageSource</code> object represents an animated image in an
- <code>HTMLImageElement</code>, the user agent must use the poster frame of the animation, or, if
- there is no poster frame, the first frame of the animation, when rendering the image for
+ <code>HTMLImageElement</code>, the user agent must use the default image of the animation (the
+ one that the format defines is to be used when animation is not supported or is disabled), or, if
+ there is no such image, the first frame of the animation, when rendering the image for
<code>CanvasRenderingContext2D</code> APIs.</p>
<p>When a <code>CanvasImageSource</code> object represents an <code>HTMLVideoElement</code>, then
@@ -63383,6 +63384,7 @@ dictionary <dfn>RelatedEventInit</dfn> : <span>EventInit</span> {
<div class="impl">
+<!--CLEANUP-->
<p>When the <dfn title="dom-dialog-show"><code>show()</code></dfn>
method is invoked, the user agent must run the following steps:</p>
@@ -82684,8 +82686,9 @@ interface <dfn>ImageBitmapFactories</dfn> {
<li><p>Let the <code>ImageBitmap</code> object's bitmap data be a copy of the <code>img</code>
element's media data, <span>cropped to the source rectangle</span>. If this is an animated
- image, the <code>ImageBitmap</code> object's bitmap data must only be taken from the
- animation's poster frame, or, if there is no poster frame, the first frame of the
+ image, the <code>ImageBitmap</code> object's bitmap data must only be taken from the default
+ image of the animation (the one that the format defines is to be used when animation is not
+ supported or is disabled), or, if there is no such image, the first frame of the
animation.</p></li>
<li><p>Return, but continue running these steps asynchronously.</p></li>
@@ -82807,8 +82810,9 @@ interface <dfn>ImageBitmapFactories</dfn> {
<li><p>Let the <code>ImageBitmap</code> object's bitmap data be the image data read from the
<code>Blob</code> object, <span>cropped to the source rectangle</span>. If this is an animated
- image, the <code>ImageBitmap</code> object's bitmap data must only be taken from the
- animation's poster frame, or, if there is no poster frame, the first frame of the
+ image, the <code>ImageBitmap</code> object's bitmap data must only be taken from the default
+ image of the animation (the one that the format defines is to be used when animation is not
+ supported or is disabled), or, if there is no such image, the first frame of the
animation.</p></li>
<li><p><span>Queue a task</span> to invoke <var title="">callback</var> with the new
@@ -94394,16 +94398,19 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {
<p>When an algorithm requires a user agent to <dfn>prescan a byte stream to determine its
encoding</dfn>, given some defined <var title="">end condition</var>, then it must run the
- following steps. These steps either abort unsuccessfully or return a character encoding.</p>
+ following steps. These steps either abort unsuccessfully or return a character encoding. If at any
+ point during these steps (including during instances of the <span>get an attribute</span>
+ algorithm invoked by this one) the user agent either runs out of bytes (meaning the <var
+ title="">position</var> pointer created in the first step below goes beyond the end of the byte
+ stream obtained so far) or reaches its <var title="">end condition</var>, then abort the
+ <span>prescan a byte stream to determine its encoding</span> algorithm unsuccessfully.</p>
<ol>
<li>
<p>Let <var title="">position</var> be a pointer to a byte in the input byte stream, initially
- pointing at the first byte. If at any point during these steps the user agent either runs out of
- bytes or reaches its <var title="">end condition</var>, then abort the <span>prescan a byte
- stream to determine its encoding</span> algorithm unsuccessfully.</p>
+ pointing at the first byte.</p>
</li>

No commit comments for this range

Something went wrong with that request. Please try again.