Skip to content

Commit

Permalink
[e] (0) Clean up more IDL since WebIDL now supports better ways to sa…
Browse files Browse the repository at this point in the history
…y this

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=21044
Affected topics: DOM APIs

git-svn-id: http://svn.whatwg.org/webapps@7755 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Mar 14, 2013
1 parent a882846 commit 211ffe8
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 38 deletions.
20 changes: 9 additions & 11 deletions complete.html
Expand Up @@ -22039,9 +22039,7 @@ <h4 id=the-img-element><span class=secno>4.8.1 </span>The <dfn><code>img</code><
<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>;
Expand Down Expand Up @@ -22944,14 +22942,14 @@ <h4 id=the-img-element><span class=secno>4.8.1 </span>The <dfn><code>img</code><
<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-->
Expand Down
20 changes: 9 additions & 11 deletions index
Expand Up @@ -22039,9 +22039,7 @@ Course course = Helm.CourseFactory(Heading, &lt;wbr&gt;Maps.MapFactoryFromHeadin
<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>;
Expand Down Expand Up @@ -22944,14 +22942,14 @@ interface <dfn id=htmlimageelement>HTMLImageElement</dfn> : <a href=#htmlelement
<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-->
Expand Down
28 changes: 12 additions & 16 deletions source
Expand Up @@ -23208,9 +23208,7 @@ Course course = Helm.CourseFactory(Heading, &lt;wbr>Maps.MapFactoryFromHeading(h
<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>;
Expand Down Expand Up @@ -24272,19 +24270,17 @@ interface <dfn>HTMLImageElement</dfn> : <span>HTMLElement</span> {
<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-->
Expand Down

0 comments on commit 211ffe8

Please sign in to comment.