[html5] r7755 - [e] (0) Clean up more IDL since WebIDL now supports better ways to say this Fixi [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Mar 13 17:33:45 PDT 2013


Author: ianh
Date: 2013-03-13 17:33:44 -0700 (Wed, 13 Mar 2013)
New Revision: 7755

Modified:
   complete.html
   index
   source
Log:
[e] (0) Clean up more IDL since WebIDL now supports better ways to say this
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=21044
Affected topics: DOM APIs

Modified: complete.html
===================================================================
--- complete.html	2013-03-14 00:30:33 UTC (rev 7754)
+++ complete.html	2013-03-14 00:33:44 UTC (rev 7755)
@@ -22039,9 +22039,7 @@
    <dd><code title=attr-dim-height><a href=#attr-dim-height>height</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-image title=dom-image>Image</a>(),
- NamedConstructor=<a href=#dom-image-w title=dom-image-w>Image</a>(unsigned long width),
- NamedConstructor=<a href=#dom-image-wh title=dom-image-wh>Image</a>(unsigned long width, unsigned long height)]
+<pre class=idl>[NamedConstructor=<a href=#dom-image title=dom-image>Image</a>(optional unsigned long width, optional unsigned long height)]
 interface <dfn id=htmlimageelement>HTMLImageElement</dfn> : <a href=#htmlelement>HTMLElement</a> {
            attribute DOMString <a href=#dom-img-alt title=dom-img-alt>alt</a>;
            attribute DOMString <a href=#dom-img-src title=dom-img-src>src</a>;
@@ -22944,14 +22942,14 @@
   <p class=note>The value of <code title=dom-img-complete><a href=#dom-img-complete>complete</a></code> can thus change while
   a <a href=#concept-script title=concept-script>script</a> is executing.</p>
 
-  <p>Three constructors are provided for creating <code><a href=#htmlimageelement>HTMLImageElement</a></code> objects (in addition
-  to the factory methods from DOM such as <code title="">createElement()</code>): <dfn id=dom-image title=dom-image><code>Image()</code></dfn>, <dfn id=dom-image-w title=dom-image-w><code>Image(<var title="">width</var>)</code></dfn>, and <dfn id=dom-image-wh title=dom-image-wh><code>Image(<var title="">width</var>, <var title="">height</var>)</code></dfn>. When invoked as constructors,
-  these must return a new <code><a href=#htmlimageelement>HTMLImageElement</a></code> object (a new <code><a href=#the-img-element>img</a></code> element). If
-  the <var title="">width</var> argument is present, the new object's <code title=attr-dim-width><a href=#attr-dim-width>width</a></code> content attribute must be set to <var title="">width</var>. If
-  the <var title="">height</var> argument is also present, the new object's <code title=attr-dim-height><a href=#attr-dim-height>height</a></code> content attribute must be set to <var title="">height</var>.
-  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=#htmlimageelement>HTMLImageElement</a></code> objects (in addition to
+  the factory methods from DOM such as <code title="">createElement()</code>): <dfn id=dom-image title=dom-image><code>Image(<var title="">width</var>, <var title="">height</var>)</code></dfn>.
+  When invoked as a constructor, this must return a new <code><a href=#htmlimageelement>HTMLImageElement</a></code> object (a new
+  <code><a href=#the-img-element>img</a></code> element). If the <var title="">width</var> argument is present, the new object's
+  <code title=attr-dim-width><a href=#attr-dim-width>width</a></code> content attribute must be set to <var title="">width</var>. If the <var title="">height</var> argument is also present, the new object's
+  <code title=attr-dim-height><a href=#attr-dim-height>height</a></code> content attribute must be set to <var title="">height</var>. 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>
 <!--TOPIC:HTML-->

Modified: index
===================================================================
--- index	2013-03-14 00:30:33 UTC (rev 7754)
+++ index	2013-03-14 00:33:44 UTC (rev 7755)
@@ -22039,9 +22039,7 @@
    <dd><code title=attr-dim-height><a href=#attr-dim-height>height</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-image title=dom-image>Image</a>(),
- NamedConstructor=<a href=#dom-image-w title=dom-image-w>Image</a>(unsigned long width),
- NamedConstructor=<a href=#dom-image-wh title=dom-image-wh>Image</a>(unsigned long width, unsigned long height)]
+<pre class=idl>[NamedConstructor=<a href=#dom-image title=dom-image>Image</a>(optional unsigned long width, optional unsigned long height)]
 interface <dfn id=htmlimageelement>HTMLImageElement</dfn> : <a href=#htmlelement>HTMLElement</a> {
            attribute DOMString <a href=#dom-img-alt title=dom-img-alt>alt</a>;
            attribute DOMString <a href=#dom-img-src title=dom-img-src>src</a>;
@@ -22944,14 +22942,14 @@
   <p class=note>The value of <code title=dom-img-complete><a href=#dom-img-complete>complete</a></code> can thus change while
   a <a href=#concept-script title=concept-script>script</a> is executing.</p>
 
-  <p>Three constructors are provided for creating <code><a href=#htmlimageelement>HTMLImageElement</a></code> objects (in addition
-  to the factory methods from DOM such as <code title="">createElement()</code>): <dfn id=dom-image title=dom-image><code>Image()</code></dfn>, <dfn id=dom-image-w title=dom-image-w><code>Image(<var title="">width</var>)</code></dfn>, and <dfn id=dom-image-wh title=dom-image-wh><code>Image(<var title="">width</var>, <var title="">height</var>)</code></dfn>. When invoked as constructors,
-  these must return a new <code><a href=#htmlimageelement>HTMLImageElement</a></code> object (a new <code><a href=#the-img-element>img</a></code> element). If
-  the <var title="">width</var> argument is present, the new object's <code title=attr-dim-width><a href=#attr-dim-width>width</a></code> content attribute must be set to <var title="">width</var>. If
-  the <var title="">height</var> argument is also present, the new object's <code title=attr-dim-height><a href=#attr-dim-height>height</a></code> content attribute must be set to <var title="">height</var>.
-  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=#htmlimageelement>HTMLImageElement</a></code> objects (in addition to
+  the factory methods from DOM such as <code title="">createElement()</code>): <dfn id=dom-image title=dom-image><code>Image(<var title="">width</var>, <var title="">height</var>)</code></dfn>.
+  When invoked as a constructor, this must return a new <code><a href=#htmlimageelement>HTMLImageElement</a></code> object (a new
+  <code><a href=#the-img-element>img</a></code> element). If the <var title="">width</var> argument is present, the new object's
+  <code title=attr-dim-width><a href=#attr-dim-width>width</a></code> content attribute must be set to <var title="">width</var>. If the <var title="">height</var> argument is also present, the new object's
+  <code title=attr-dim-height><a href=#attr-dim-height>height</a></code> content attribute must be set to <var title="">height</var>. 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>
 <!--TOPIC:HTML-->

Modified: source
===================================================================
--- source	2013-03-14 00:30:33 UTC (rev 7754)
+++ source	2013-03-14 00:33:44 UTC (rev 7755)
@@ -23208,9 +23208,7 @@
    <dd><code title="attr-dim-height">height</code></dd>
    <dt><span title="element-dfn-dom">DOM interface</span>:</dt><!--TOPIC:DOM APIs-->
    <dd>
-<pre class="idl">[NamedConstructor=<span title="dom-image">Image</span>(),
- NamedConstructor=<span title="dom-image-w">Image</span>(unsigned long width),
- NamedConstructor=<span title="dom-image-wh">Image</span>(unsigned long width, unsigned long height)]
+<pre class="idl">[NamedConstructor=<span title="dom-image">Image</span>(optional unsigned long width, optional unsigned long height)]
 interface <dfn>HTMLImageElement</dfn> : <span>HTMLElement</span> {
            attribute DOMString <span title="dom-img-alt">alt</span>;
            attribute DOMString <span title="dom-img-src">src</span>;
@@ -24272,19 +24270,17 @@
   <p class="note">The value of <code title="dom-img-complete">complete</code> can thus change while
   a <span title="concept-script">script</span> is executing.</p>
 
-  <p>Three constructors are provided for creating <code>HTMLImageElement</code> objects (in addition
-  to the factory methods from DOM such as <code title="">createElement()</code>): <dfn
-  title="dom-image"><code>Image()</code></dfn>, <dfn title="dom-image-w"><code>Image(<var
-  title="">width</var>)</code></dfn>, and <dfn title="dom-image-wh"><code>Image(<var
-  title="">width</var>, <var title="">height</var>)</code></dfn>. When invoked as constructors,
-  these must return a new <code>HTMLImageElement</code> object (a new <code>img</code> element). If
-  the <var title="">width</var> argument is present, the new object's <code
-  title="attr-dim-width">width</code> content attribute must be set to <var title="">width</var>. If
-  the <var title="">height</var> argument is also present, the new object's <code
-  title="attr-dim-height">height</code> content attribute must be set to <var title="">height</var>.
-  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>HTMLImageElement</code> objects (in addition to
+  the factory methods from DOM such as <code title="">createElement()</code>): <dfn
+  title="dom-image"><code>Image(<var title="">width</var>, <var title="">height</var>)</code></dfn>.
+  When invoked as a constructor, this must return a new <code>HTMLImageElement</code> object (a new
+  <code>img</code> element). If the <var title="">width</var> argument is present, the new object's
+  <code title="attr-dim-width">width</code> content attribute must be set to <var
+  title="">width</var>. If the <var title="">height</var> argument is also present, the new object's
+  <code title="attr-dim-height">height</code> content attribute must be set to <var
+  title="">height</var>. 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>
 <!--TOPIC:HTML-->




More information about the Commit-Watchers mailing list