Skip to content

Commit

Permalink
constructor -> legacy factory function in prose
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Apr 20, 2020
1 parent 5f22f61 commit 249553b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -26354,11 +26354,11 @@ img.decode().then(() => {

<div w-nodev>

<p>A constructor is provided for creating <code>HTMLImageElement</code> objects (in addition to
the factory methods from DOM such as <code
<p>A legacy factory function is provided for creating <code>HTMLImageElement</code> objects (in
addition to the factory methods from DOM such as <code
data-x="dom-Document-createElement">createElement()</code>): <dfn
data-x="dom-image"><code>Image(<var>width</var>, <var>height</var>)</code></dfn>. When invoked,
the constructor must perform the following steps:</p>
the legacy factory function must perform the following steps:</p>

<ol>
<li><p>Let <var>document</var> be the <span>current global object</span>'s <span
Expand Down Expand Up @@ -31832,11 +31832,11 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {

<div w-nodev>

<p>A constructor is provided for creating <code>HTMLAudioElement</code> objects (in addition to
the factory methods from DOM such as <code
<p>A legacy factory function is provided for creating <code>HTMLAudioElement</code> objects (in
addition to the factory methods from DOM such as <code
data-x="dom-Document-createElement">createElement()</code>):
<dfn><code data-x="dom-Audio">Audio(<var>src</var>)</code></dfn>. When invoked,
the constructor must perform the following steps:</p>
the legacy factory function must perform the following steps:</p>

<ol>
<li><p>Let <var>document</var> be the <span>current global object</span>'s <span
Expand Down Expand Up @@ -50147,12 +50147,12 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
attribute must return the same value as the <code data-x="dom-fae-form">form</code> IDL attribute
on that <code>select</code> element. Otherwise, it must return null.</p>

<p>A constructor is provided for creating <code>HTMLOptionElement</code> objects (in addition to
the factory methods from DOM such as <code
data-x="dom-Document-createElement">createElement()</code>):
<dfn><code data-x="dom-option">Option(<var>text</var>, <var>value</var>,
<var>defaultSelected</var>, <var>selected</var>)</code></dfn>. When invoked, the constructor must
perform the following steps:</p>
<p>A legacy factory function is provided for creating <code>HTMLOptionElement</code> objects (in
addition to the factory methods from DOM such as <code
data-x="dom-Document-createElement">createElement()</code>): <dfn><code
data-x="dom-option">Option(<var>text</var>, <var>value</var>, <var>defaultSelected</var>,
<var>selected</var>)</code></dfn>. When invoked, the legacy factory function must perform the
following steps:</p>

<ol>
<li><p>Let <var>document</var> be the <span>current global object</span>'s <span
Expand Down

0 comments on commit 249553b

Please sign in to comment.