Skip to content

Commit 58a8817

Browse files
frigus02domenic
authored andcommitted
Fix example of output element to use ids instead of names
The first example of the output element incorrectly referenced input elements in the "for" attribute by their names. This changes the example to reference input elements by their ids instead. Fixes #3312.
1 parent fdd60d3 commit 58a8817

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

source

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51384,9 +51384,9 @@ interface <dfn>HTMLOutputElement</dfn> : <span>HTMLElement</span> {
5138451384
<p>A simple calculator could use <code>output</code> for its display of calculated results:</p>
5138551385

5138651386
<pre>&lt;form onsubmit="return false" oninput="o.value = a.valueAsNumber + b.valueAsNumber">
51387-
&lt;input name=a type=number step=any> +
51388-
&lt;input name=b type=number step=any> =
51389-
&lt;output name=o for="a b">&lt;/output>
51387+
&lt;input id=a type=number step=any> +
51388+
&lt;input id=b type=number step=any> =
51389+
&lt;output id=o for="a b">&lt;/output>
5139051390
&lt;/form></pre>
5139151391

5139251392
</div>
@@ -121039,6 +121039,7 @@ INSERT INTERFACES HERE
121039121039
James Perrett,
121040121040
James Robinson,
121041121041
Jamie Lokier,
121042+
Jan K&uuml;hle, <!-- frigus02 on GitHub -->
121042121043
Jan Miksovsky,
121043121044
Janusz Majnert,
121044121045
Jan-Klaas Kollhof,

0 commit comments

Comments
 (0)