[html5] r8422 - [giow] (3) Make sure newly created <video> and <audio> elements with a src='' at [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Jan 27 11:31:05 PST 2014


Author: ianh
Date: 2014-01-27 11:31:04 -0800 (Mon, 27 Jan 2014)
New Revision: 8422

Modified:
   complete.html
   index
   source
Log:
[giow] (3) Make sure newly created <video> and <audio> elements with a src='' attribute actually load the media.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=24325
Affected topics: HTML, Video and Audio

Modified: complete.html
===================================================================
--- complete.html	2014-01-27 19:04:27 UTC (rev 8421)
+++ complete.html	2014-01-27 19:31:04 UTC (rev 8422)
@@ -25010,13 +25010,14 @@
 
   </dl><div class=impl>
 
+<!--CLEANUP-->
   <p>A constructor is provided for creating <code><a href=#htmlaudioelement>HTMLAudioElement</a></code> objects (in addition to
   the factory methods from DOM such as <code title="">createElement()</code>): <dfn id=dom-audio title=dom-Audio><code>Audio(<var title="">src</var>)</code></dfn>. When invoked as a
   constructor, it must return a new <code><a href=#htmlaudioelement>HTMLAudioElement</a></code> object (a new <code><a href=#the-audio-element>audio</a></code>
   element). The element must have its <code title=attr-media-preload><a href=#attr-media-preload>preload</a></code> attribute set
-  to the literal value "<code title=attr-media-preload-auto><a href=#attr-media-preload-auto>auto</a></code>". If the <var title="">src</var> argument is present, the object created must have its <code title=attr-media-src><a href=#attr-media-src>src</a></code> content attribute set to the provided value, and the user agent
-  must invoke the object's <a href=#concept-media-load-algorithm title=concept-media-load-algorithm>resource selection
-  algorithm</a> before returning. The element's document must be the <a href=#active-document>active document</a>
+  to the literal value "<code title=attr-media-preload-auto><a href=#attr-media-preload-auto>auto</a></code>". If the <var title="">src</var> argument is present, the object created must have its <code title=attr-media-src><a href=#attr-media-src>src</a></code> content attribute set to the provided value (this will <a href=#concept-media-load-algorithm-at-creation>cause the user agent to invoke</a> the object's
+  <a href=#concept-media-load-algorithm title=concept-media-load-algorithm>resource selection algorithm</a> before returning).
+  The element's document must be the <a href=#active-document>active document</a>
   of the <a href=#browsing-context>browsing context</a> of the <code><a href=#window>Window</a></code> object on which the interface
   object of the invoked constructor is found.</p>
 
@@ -25665,6 +25666,11 @@
 
   <div class=impl>
 
+  <p id=concept-media-load-algorithm-at-creation>If a <a href=#media-element>media element</a> is created with a
+  <code title=attr-media-src><a href=#attr-media-src>src</a></code> attribute, the user agent must synchronously invoke the
+  <a href=#media-element>media element</a>'s <a href=#concept-media-load-algorithm title=concept-media-load-algorithm>resource selection
+  algorithm</a>.</p>
+
   <p>If a <code title=attr-media-src><a href=#attr-media-src>src</a></code> attribute of a <a href=#media-element>media element</a> is set
   or changed, the user agent must invoke the <a href=#media-element>media element</a>'s <a href=#media-element-load-algorithm>media element load
   algorithm</a>. (<em>Removing</em> the <code title=attr-media-src><a href=#attr-media-src>src</a></code> attribute does

Modified: index
===================================================================
--- index	2014-01-27 19:04:27 UTC (rev 8421)
+++ index	2014-01-27 19:31:04 UTC (rev 8422)
@@ -25010,13 +25010,14 @@
 
   </dl><div class=impl>
 
+<!--CLEANUP-->
   <p>A constructor is provided for creating <code><a href=#htmlaudioelement>HTMLAudioElement</a></code> objects (in addition to
   the factory methods from DOM such as <code title="">createElement()</code>): <dfn id=dom-audio title=dom-Audio><code>Audio(<var title="">src</var>)</code></dfn>. When invoked as a
   constructor, it must return a new <code><a href=#htmlaudioelement>HTMLAudioElement</a></code> object (a new <code><a href=#the-audio-element>audio</a></code>
   element). The element must have its <code title=attr-media-preload><a href=#attr-media-preload>preload</a></code> attribute set
-  to the literal value "<code title=attr-media-preload-auto><a href=#attr-media-preload-auto>auto</a></code>". If the <var title="">src</var> argument is present, the object created must have its <code title=attr-media-src><a href=#attr-media-src>src</a></code> content attribute set to the provided value, and the user agent
-  must invoke the object's <a href=#concept-media-load-algorithm title=concept-media-load-algorithm>resource selection
-  algorithm</a> before returning. The element's document must be the <a href=#active-document>active document</a>
+  to the literal value "<code title=attr-media-preload-auto><a href=#attr-media-preload-auto>auto</a></code>". If the <var title="">src</var> argument is present, the object created must have its <code title=attr-media-src><a href=#attr-media-src>src</a></code> content attribute set to the provided value (this will <a href=#concept-media-load-algorithm-at-creation>cause the user agent to invoke</a> the object's
+  <a href=#concept-media-load-algorithm title=concept-media-load-algorithm>resource selection algorithm</a> before returning).
+  The element's document must be the <a href=#active-document>active document</a>
   of the <a href=#browsing-context>browsing context</a> of the <code><a href=#window>Window</a></code> object on which the interface
   object of the invoked constructor is found.</p>
 
@@ -25665,6 +25666,11 @@
 
   <div class=impl>
 
+  <p id=concept-media-load-algorithm-at-creation>If a <a href=#media-element>media element</a> is created with a
+  <code title=attr-media-src><a href=#attr-media-src>src</a></code> attribute, the user agent must synchronously invoke the
+  <a href=#media-element>media element</a>'s <a href=#concept-media-load-algorithm title=concept-media-load-algorithm>resource selection
+  algorithm</a>.</p>
+
   <p>If a <code title=attr-media-src><a href=#attr-media-src>src</a></code> attribute of a <a href=#media-element>media element</a> is set
   or changed, the user agent must invoke the <a href=#media-element>media element</a>'s <a href=#media-element-load-algorithm>media element load
   algorithm</a>. (<em>Removing</em> the <code title=attr-media-src><a href=#attr-media-src>src</a></code> attribute does

Modified: source
===================================================================
--- source	2014-01-27 19:04:27 UTC (rev 8421)
+++ source	2014-01-27 19:31:04 UTC (rev 8422)
@@ -26439,6 +26439,7 @@
 
   <div class="impl">
 
+<!--CLEANUP-->
   <p>A constructor is provided for creating <code>HTMLAudioElement</code> objects (in addition to
   the factory methods from DOM such as <code data-x="">createElement()</code>): <dfn
   data-x="dom-Audio"><code>Audio(<var data-x="">src</var>)</code></dfn>. When invoked as a
@@ -26446,9 +26447,10 @@
   element). The element must have its <code data-x="attr-media-preload">preload</code> attribute set
   to the literal value "<code data-x="attr-media-preload-auto">auto</code>". If the <var
   data-x="">src</var> argument is present, the object created must have its <code
-  data-x="attr-media-src">src</code> content attribute set to the provided value, and the user agent
-  must invoke the object's <span data-x="concept-media-load-algorithm">resource selection
-  algorithm</span> before returning. The element's document must be the <span>active document</span>
+  data-x="attr-media-src">src</code> content attribute set to the provided value (this will <a
+  href="#concept-media-load-algorithm-at-creation">cause the user agent to invoke</a> the object's
+  <span data-x="concept-media-load-algorithm">resource selection algorithm</span> before returning).
+  The element's document must be the <span>active document</span>
   of the <span>browsing context</span> of the <code>Window</code> object on which the interface
   object of the invoked constructor is found.</p>
 
@@ -27175,6 +27177,11 @@
 
   <div class="impl">
 
+  <p id="concept-media-load-algorithm-at-creation">If a <span>media element</span> is created with a
+  <code data-x="attr-media-src">src</code> attribute, the user agent must synchronously invoke the
+  <span>media element</span>'s <span data-x="concept-media-load-algorithm">resource selection
+  algorithm</span>.</p>
+
   <p>If a <code data-x="attr-media-src">src</code> attribute of a <span>media element</span> is set
   or changed, the user agent must invoke the <span>media element</span>'s <span>media element load
   algorithm</span>. (<em>Removing</em> the <code data-x="attr-media-src">src</code> attribute does




More information about the Commit-Watchers mailing list