[html5] r4871 - [e] (0) example correctness
whatwg at whatwg.org
whatwg at whatwg.org
Thu Mar 25 18:30:49 PDT 2010
Author: ianh
Date: 2010-03-25 18:30:48 -0700 (Thu, 25 Mar 2010)
New Revision: 4871
Modified:
complete.html
index
source
Log:
[e] (0) example correctness
Modified: complete.html
===================================================================
--- complete.html 2010-03-25 23:57:20 UTC (rev 4870)
+++ complete.html 2010-03-26 01:30:48 UTC (rev 4871)
@@ -169,7 +169,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<hgroup><h1>Web Applications 1.0</h1>
- <h2 class="no-num no-toc">Draft Standard — 25 March 2010</h2>
+ <h2 class="no-num no-toc">Draft Standard — 26 March 2010</h2>
</hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
@@ -22316,20 +22316,24 @@
<code title=event-error>error</code> event on the last
<code><a href=#the-source-element>source</a></code> element and trigger fallback behaviour:</p>
- <pre><video controls autoplay>
+ <pre><script>
+ function fallback(video) {
+ // replace <video> with its contents
+ while (video.hasChildNodes()) {
+ if (video.firstChild instanceof HTMLSourceElement)
+ video.removeChild(video.firstChild);
+ else
+ video.parentNode.insertBefore(video.firstChild, video);
+ }
+ video.parentNode.removeChild(video);
+ }
+</script>
+<video controls autoplay>
<source src='video.mp4' type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
<source src='video.ogv' type='video/ogg; codecs="theora, vorbis"'
onerror="fallback(parentNode)">
...
-</video>
-<script>
- function fallback(video) {
- // replace <video> with its contents
- while (video.hasChildNodes())
- video.parentNode.insertBefore(video.firstChild, video);
- video.parentNode.removeChild(video);
- }
-</script></pre>
+</video></pre>
</div>
Modified: index
===================================================================
--- index 2010-03-25 23:57:20 UTC (rev 4870)
+++ index 2010-03-26 01:30:48 UTC (rev 4871)
@@ -173,7 +173,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<hgroup><h1>HTML5 (including next generation additions still in development)</h1>
- <h2 class="no-num no-toc">Draft Standard — 25 March 2010</h2>
+ <h2 class="no-num no-toc">Draft Standard — 26 March 2010</h2>
</hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
@@ -22217,20 +22217,24 @@
<code title=event-error>error</code> event on the last
<code><a href=#the-source-element>source</a></code> element and trigger fallback behaviour:</p>
- <pre><video controls autoplay>
+ <pre><script>
+ function fallback(video) {
+ // replace <video> with its contents
+ while (video.hasChildNodes()) {
+ if (video.firstChild instanceof HTMLSourceElement)
+ video.removeChild(video.firstChild);
+ else
+ video.parentNode.insertBefore(video.firstChild, video);
+ }
+ video.parentNode.removeChild(video);
+ }
+</script>
+<video controls autoplay>
<source src='video.mp4' type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
<source src='video.ogv' type='video/ogg; codecs="theora, vorbis"'
onerror="fallback(parentNode)">
...
-</video>
-<script>
- function fallback(video) {
- // replace <video> with its contents
- while (video.hasChildNodes())
- video.parentNode.insertBefore(video.firstChild, video);
- video.parentNode.removeChild(video);
- }
-</script></pre>
+</video></pre>
</div>
Modified: source
===================================================================
--- source 2010-03-25 23:57:20 UTC (rev 4870)
+++ source 2010-03-26 01:30:48 UTC (rev 4871)
@@ -23851,20 +23851,24 @@
<code title="event-error">error</code> event on the last
<code>source</code> element and trigger fallback behaviour:</p>
- <pre><video controls autoplay>
+ <pre><script>
+ function fallback(video) {
+ // replace <video> with its contents
+ while (video.hasChildNodes()) {
+ if (video.firstChild instanceof HTMLSourceElement)
+ video.removeChild(video.firstChild);
+ else
+ video.parentNode.insertBefore(video.firstChild, video);
+ }
+ video.parentNode.removeChild(video);
+ }
+</script>
+<video controls autoplay>
<source src='video.mp4' type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
<source src='video.ogv' type='video/ogg; codecs="theora, vorbis"'
onerror="fallback(parentNode)">
...
-</video>
-<script>
- function fallback(video) {
- // replace <video> with its contents
- while (video.hasChildNodes())
- video.parentNode.insertBefore(video.firstChild, video);
- video.parentNode.removeChild(video);
- }
-</script></pre>
+</video></pre>
</div>
More information about the Commit-Watchers
mailing list