- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
 - Date: Fri, 26 Mar 2010 01:37:10 +0000
 - To: public-html-commits@w3.org
 
Update of /sources/public/html5/spec-author-view
In directory hutz:/tmp/cvs-serv18051
Modified Files:
	Overview.html spec.html video.html 
Log Message:
example correctness (whatwg r4871)
[updated by splitter]
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/Overview.html,v
retrieving revision 1.789
retrieving revision 1.790
diff -u -d -r1.789 -r1.790
--- Overview.html	25 Mar 2010 21:37:14 -0000	1.789
+++ Overview.html	26 Mar 2010 01:37:07 -0000	1.790
@@ -306,7 +306,7 @@
    </dl><p>This specification is available in the following formats: 
     <a href="spec.html">single page HTML</a>,
     <a href="Overview.html">multipage HTML</a>.
-This is revision 1.3898.
+This is revision 1.3899.
    </p> 
    <p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a>
    © 2010 <a href="http://www.w3.org/"><abbr title="World Wide
Index: video.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/video.html,v
retrieving revision 1.577
retrieving revision 1.578
diff -u -d -r1.577 -r1.578
--- video.html	9 Mar 2010 00:37:15 -0000	1.577
+++ video.html	26 Mar 2010 01:37:08 -0000	1.578
@@ -620,20 +620,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>
- <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>
+   <pre><script>
  function fallback(video) {
    // replace <video> with its contents
-   while (video.hasChildNodes())
-     video.parentNode.insertBefore(video.firstChild, video);
+   while (video.hasChildNodes()) {
+     if (video.firstChild instanceof HTMLSourceElement)
+       video.removeChild(video.firstChild);
+     else
+       video.parentNode.insertBefore(video.firstChild, video);
+   }
    video.parentNode.removeChild(video);
  }
-</script></pre>
+</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></pre>
 
   </div><h4 id="media-elements"><span class="secno">4.8.9 </span>Media elements</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p><dfn id="media-element" title="media element">Media elements</dfn> implement the
   following interface:</p><pre class="idl">interface <dfn id="htmlmediaelement">HTMLMediaElement</dfn> : <a href="elements.html#htmlelement">HTMLElement</a> {
Index: spec.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/spec.html,v
retrieving revision 1.795
retrieving revision 1.796
diff -u -d -r1.795 -r1.796
--- spec.html	25 Mar 2010 21:37:14 -0000	1.795
+++ spec.html	26 Mar 2010 01:37:07 -0000	1.796
@@ -304,7 +304,7 @@
    </dl><p>This specification is available in the following formats: 
     <a href=spec.html>single page HTML</a>,
     <a href=Overview.html>multipage HTML</a>.
-This is revision 1.3898.
+This is revision 1.3899.
    </p> 
    <p class=copyright><a href=http://www.w3.org/Consortium/Legal/ipr-notice#Copyright>Copyright</a>
    © 2010 <a href=http://www.w3.org/><abbr title="World Wide
@@ -10676,20 +10676,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>
- <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>
+   <pre><script>
  function fallback(video) {
    // replace <video> with its contents
-   while (video.hasChildNodes())
-     video.parentNode.insertBefore(video.firstChild, video);
+   while (video.hasChildNodes()) {
+     if (video.firstChild instanceof HTMLSourceElement)
+       video.removeChild(video.firstChild);
+     else
+       video.parentNode.insertBefore(video.firstChild, video);
+   }
    video.parentNode.removeChild(video);
  }
-</script></pre>
+</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></pre>
 
   </div><h4 id=media-elements><span class=secno>4.8.9 </span>Media elements</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p><dfn id=media-element title="media element">Media elements</dfn> implement the
   following interface:</p><pre class=idl>interface <dfn id=htmlmediaelement>HTMLMediaElement</dfn> : <a href=#htmlelement>HTMLElement</a> {
Received on Friday, 26 March 2010 01:37:12 UTC