[html5] r7751 - [e] (0) Clean up IDL Affected topics: DOM APIs, HTML

whatwg at whatwg.org whatwg at whatwg.org
Wed Mar 13 16:58:08 PDT 2013


Author: ianh
Date: 2013-03-13 16:58:07 -0700 (Wed, 13 Mar 2013)
New Revision: 7751

Modified:
   complete.html
   index
   source
Log:
[e] (0) Clean up IDL
Affected topics: DOM APIs, HTML

Modified: complete.html
===================================================================
--- complete.html	2013-03-13 23:32:25 UTC (rev 7750)
+++ complete.html	2013-03-13 23:58:07 UTC (rev 7751)
@@ -26141,8 +26141,7 @@
    <dd><code title=attr-media-controls><a href=#attr-media-controls>controls</a></code></dd>
    <dt><a href=#element-dfn-dom title=element-dfn-dom>DOM interface</a>:</dt><!--TOPIC:DOM APIs-->
    <dd>
-    <pre class=idl>[NamedConstructor=<a href=#dom-audio title=dom-Audio>Audio</a>(),
- NamedConstructor=<a href=#dom-audio-s title=dom-Audio-s>Audio</a>(DOMString src)]
+    <pre class=idl>[NamedConstructor=<a href=#dom-audio-s title=dom-Audio-s>Audio</a>(optional DOMString src)]
 interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href=#htmlmediaelement>HTMLMediaElement</a> {};</pre>
    </dd>
   </dl><!--TOPIC:HTML--><p>An <code><a href=#the-audio-element>audio</a></code> element <a href=#represents>represents</a> a sound or
@@ -26202,7 +26201,7 @@
 
   </div>
 
-  <dl class=domintro><dt><var title="">audio</var> = new <code title=dom-Audio><a href=#dom-audio>Audio</a></code>( [ <var title="">url</var> ] )</dt>
+  <dl class=domintro><dt><var title="">audio</var> = new <code title=dom-Audio>Audio</code>( [ <var title="">url</var> ] )</dt>
 
    <dd>
 
@@ -26213,15 +26212,15 @@
 
   </dl><div class=impl>
 
-  <p>Two constructors are 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()</code></dfn> and <dfn id=dom-audio-s title=dom-Audio-s><code>Audio(<var title="">src</var>)</code></dfn>. When invoked as constructors, these 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> 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>
+  <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-s title=dom-Audio-s><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>
+  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>
 
   </div>
 

Modified: index
===================================================================
--- index	2013-03-13 23:32:25 UTC (rev 7750)
+++ index	2013-03-13 23:58:07 UTC (rev 7751)
@@ -26141,8 +26141,7 @@
    <dd><code title=attr-media-controls><a href=#attr-media-controls>controls</a></code></dd>
    <dt><a href=#element-dfn-dom title=element-dfn-dom>DOM interface</a>:</dt><!--TOPIC:DOM APIs-->
    <dd>
-    <pre class=idl>[NamedConstructor=<a href=#dom-audio title=dom-Audio>Audio</a>(),
- NamedConstructor=<a href=#dom-audio-s title=dom-Audio-s>Audio</a>(DOMString src)]
+    <pre class=idl>[NamedConstructor=<a href=#dom-audio-s title=dom-Audio-s>Audio</a>(optional DOMString src)]
 interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href=#htmlmediaelement>HTMLMediaElement</a> {};</pre>
    </dd>
   </dl><!--TOPIC:HTML--><p>An <code><a href=#the-audio-element>audio</a></code> element <a href=#represents>represents</a> a sound or
@@ -26202,7 +26201,7 @@
 
   </div>
 
-  <dl class=domintro><dt><var title="">audio</var> = new <code title=dom-Audio><a href=#dom-audio>Audio</a></code>( [ <var title="">url</var> ] )</dt>
+  <dl class=domintro><dt><var title="">audio</var> = new <code title=dom-Audio>Audio</code>( [ <var title="">url</var> ] )</dt>
 
    <dd>
 
@@ -26213,15 +26212,15 @@
 
   </dl><div class=impl>
 
-  <p>Two constructors are 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()</code></dfn> and <dfn id=dom-audio-s title=dom-Audio-s><code>Audio(<var title="">src</var>)</code></dfn>. When invoked as constructors, these 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> 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>
+  <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-s title=dom-Audio-s><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>
+  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>
 
   </div>
 

Modified: source
===================================================================
--- source	2013-03-13 23:32:25 UTC (rev 7750)
+++ source	2013-03-13 23:58:07 UTC (rev 7751)
@@ -27802,8 +27802,7 @@
    <dd><code title="attr-media-controls">controls</code></dd>
    <dt><span title="element-dfn-dom">DOM interface</span>:</dt><!--TOPIC:DOM APIs-->
    <dd>
-    <pre class="idl">[NamedConstructor=<span title="dom-Audio">Audio</span>(),
- NamedConstructor=<span title="dom-Audio-s">Audio</span>(DOMString src)]
+    <pre class="idl">[NamedConstructor=<span title="dom-Audio-s">Audio</span>(optional DOMString src)]
 interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {};</pre>
    </dd>
   </dl><!--TOPIC:HTML-->
@@ -27885,19 +27884,18 @@
 
   <div class="impl">
 
-  <p>Two constructors are provided for creating <code>HTMLAudioElement</code> objects (in addition
-  to the factory methods from DOM such as <code title="">createElement()</code>): <dfn
-  title="dom-Audio"><code>Audio()</code></dfn> and <dfn title="dom-Audio-s"><code>Audio(<var
-  title="">src</var>)</code></dfn>. When invoked as constructors, these must return a new
-  <code>HTMLAudioElement</code> object (a new <code>audio</code> element). The element must have its
-  <code title="attr-media-preload">preload</code> attribute set to the literal value "<code
-  title="attr-media-preload-auto">auto</code>". If the <var title="">src</var> argument is present,
-  the object created must have its <code title="attr-media-src">src</code> content attribute set to
-  the provided value, and the user agent must invoke the object's <span
-  title="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>
+  <p>A constructor is provided for creating <code>HTMLAudioElement</code> objects (in addition to
+  the factory methods from DOM such as <code title="">createElement()</code>): <dfn
+  title="dom-Audio-s"><code>Audio(<var title="">src</var>)</code></dfn>. When invoked as a
+  constructor, it must return a new <code>HTMLAudioElement</code> object (a new <code>audio</code>
+  element). The element must have its <code title="attr-media-preload">preload</code> attribute set
+  to the literal value "<code title="attr-media-preload-auto">auto</code>". If the <var
+  title="">src</var> argument is present, the object created must have its <code
+  title="attr-media-src">src</code> content attribute set to the provided value, and the user agent
+  must invoke the object's <span title="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>
 
   </div>
 




More information about the Commit-Watchers mailing list