html5/spec spec.html,1.900,1.901 video.html,1.748,1.749

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv17991

Modified Files:
	spec.html video.html 
Log Message:
example correctness (whatwg r4871)

[updated by splitter]


Index: video.html
===================================================================
RCS file: /sources/public/html5/spec/video.html,v
retrieving revision 1.748
retrieving revision 1.749
diff -u -d -r1.748 -r1.749
--- video.html	25 Mar 2010 21:36:39 -0000	1.748
+++ video.html	26 Mar 2010 01:36:36 -0000	1.749
@@ -801,20 +801,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>&lt;video controls autoplay&gt;
- &lt;source src='video.mp4' type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'&gt;
- &lt;source src='video.ogv' type='video/ogg; codecs="theora, vorbis"'
-         onerror="fallback(parentNode)"&gt;
- ...
-&lt;/video&gt;
-&lt;script&gt;
+   <pre>&lt;script&gt;
  function fallback(video) {
    // replace &lt;video&gt; 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);
  }
-&lt;/script&gt;</pre>
+&lt;/script&gt;
+&lt;video controls autoplay&gt;
+ &lt;source src='video.mp4' type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'&gt;
+ &lt;source src='video.ogv' type='video/ogg; codecs="theora, vorbis"'
+         onerror="fallback(parentNode)"&gt;
+ ...
+&lt;/video&gt;</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="dom.html#htmlelement">HTMLElement</a> {

Index: spec.html
===================================================================
RCS file: /sources/public/html5/spec/spec.html,v
retrieving revision 1.900
retrieving revision 1.901
diff -u -d -r1.900 -r1.901
--- spec.html	25 Mar 2010 21:36:39 -0000	1.900
+++ spec.html	26 Mar 2010 01:36:35 -0000	1.901
@@ -307,7 +307,7 @@
    </dl><p>This specification is available in the following formats: 
     <a href="Overview.html">single page HTML</a>,
     <a href="spec.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>
    &#169; 2010 <a href="http://www.w3.org/"><abbr title="World Wide

Received on Friday, 26 March 2010 01:36:39 UTC