[html5] r1097 - /
whatwg at whatwg.org
whatwg at whatwg.org
Thu Oct 25 17:39:02 PDT 2007
Author: ianh
Date: 2007-10-25 17:39:01 -0700 (Thu, 25 Oct 2007)
New Revision: 1097
Modified:
index
source
Log:
[g] (2) Add the poster='' attribute to <video>. Takes a URI.
Modified: index
===================================================================
--- index 2007-10-25 23:40:08 UTC (rev 1096)
+++ index 2007-10-26 00:39:01 UTC (rev 1097)
@@ -22,7 +22,7 @@
<h1 id=html-5>HTML 5</h1>
- <h2 class="no-num no-toc" id=working>Working Draft — 25 October 2007</h2>
+ <h2 class="no-num no-toc" id=working>Working Draft — 26 October 2007</h2>
<p>You can take part in this work. <a
href="http://www.whatwg.org/mailing-list">Join the working group's
@@ -13311,6 +13311,8 @@
<dd><code title=attr-media-src><a href="#src5">src</a></code>
+ <dd><code title=attr-video-poster><a href="#poster">poster</a></code>
+
<dd><code title=attr-media-autoplay><a
href="#autoplay">autoplay</a></code>
@@ -13342,6 +13344,7 @@
attribute long <a href="#height4" title=dom-dim-height>height</a>;
readonly attribute unsigned long <a href="#videowidth" title=dom-video-videoWidth>videoWidth</a>;
readonly attribute unsigned long <a href="#videoheight" title=dom-video-videoHeight>videoHeight</a>;
+ attribute DOMString <a href="#poster0" title=dom-video-poster>poster</a>;
};</pre>
</dl>
@@ -13380,6 +13383,15 @@
<p>The <code><a href="#video1">video</a></code> element supports <a
href="#dimension0">dimension attributes</a>.
+ <p>The <dfn id=poster title=attr-video-poster><code>poster</code></dfn>
+ attribute gives the address of an image file that the user agent can show
+ while no video data is available. The attribute, if present, must contain
+ a URI (or IRI).
+
+ <p>The <dfn id=poster0 title=dom-video-poster><code>poster</code></dfn> DOM
+ attribute must reflect the <code title=attr-video-poster><a
+ href="#poster">poster</a></code> content attribute.
+
<p>The <dfn id=videowidth
title=dom-video-videoWidth><code>videoWidth</code></dfn> DOM attribute
must return the native width of the video in CSS pixels. The <dfn
@@ -13397,7 +13409,9 @@
title=dom-media-LOADING><a href="#loading0">LOADING</a></code>, or <code
title=dom-media-LOADED_METADATA><a
href="#loadedmetadata">LOADED_METADATA</a></code>), <code><a
- href="#video1">video</a></code> elements represent nothing.
+ href="#video1">video</a></code> elements represent either the image given
+ by the <code title=attr-video-poster><a href="#poster">poster</a></code>
+ attribute, or nothing.
<p>When a <code><a href="#video1">video</a></code> element is <a
href="#actively">actively playing</a>, it represents the frame of video at
Modified: source
===================================================================
--- source 2007-10-25 23:40:08 UTC (rev 1096)
+++ source 2007-10-26 00:39:01 UTC (rev 1097)
@@ -11200,6 +11200,7 @@
<dd>If the element does not have a <code title="attr-media-src">src</code> attribute: one or more <code>source</code> elements, then, <span>transparent</span>.</dd>
<dt>Element-specific attributes:</dt>
<dd><code title="attr-media-src">src</code></dd>
+ <dd><code title="attr-video-poster">poster</code></dd>
<dd><code title="attr-media-autoplay">autoplay</code></dd>
<dd><code title="attr-media-start">start</code></dd>
<dd><code title="attr-media-loopstart">loopstart</code></dd>
@@ -11216,6 +11217,7 @@
attribute long <span title="dom-dim-height">height</span>;
readonly attribute unsigned long <span title="dom-video-videoWidth">videoWidth</span>;
readonly attribute unsigned long <span title="dom-video-videoHeight">videoHeight</span>;
+ attribute DOMString <span title="dom-video-poster">poster</span>;
};</pre>
</dd>
</dl>
@@ -11254,6 +11256,15 @@
<p>The <code>video</code> element supports <span>dimension
attributes</span>.</p>
+ <p>The <dfn title="attr-video-poster"><code>poster</code></dfn>
+ attribute gives the address of an image file that the user agent can
+ show while no video data is available. The attribute, if present,
+ must contain a URI (or IRI).</p>
+
+ <p>The <dfn title="dom-video-poster"><code>poster</code></dfn> DOM
+ attribute must reflect the <code
+ title="attr-video-poster">poster</code> content attribute.</p>
+
<p>The <dfn
title="dom-video-videoWidth"><code>videoWidth</code></dfn> DOM
attribute must return the native width of the video in CSS
@@ -11271,8 +11282,10 @@
either <code title="dom-media-EMPTY">EMPTY</code>, <code
title="dom-media-LOADING">LOADING</code>, or <code
title="dom-media-LOADED_METADATA">LOADED_METADATA</code>),
- <code>video</code> elements represent nothing.</p>
-
+ <code>video</code> elements represent either the image given by the
+ <code title="attr-video-poster">poster</code> attribute, or
+ nothing.</p>
+
<p>When a <code>video</code> element is <span>actively
playing</span>, it represents the frame of video at the continuously
increasing <span title="current playback position">"current"
More information about the Commit-Watchers
mailing list