Skip to content

Commit fe9c99d

Browse files
Fix example in HTMLElement constructor steps
The initial value of this variable in the example made it so that the branch in the constructor we were trying to exemplify would never actually be hit.
1 parent 7d8951c commit fe9c99d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11289,7 +11289,7 @@ document.createElement("bad-1"); // (2)</code></pre>
1128911289
instance of the class being constructed, before calling <code
1129011290
data-x="">super()</code>:</p>
1129111291

11292-
<pre><code class="js">let doSillyThing = false;
11292+
<pre><code class="js">let doSillyThing = true;
1129311293

1129411294
class DontDoThis extends HTMLElement {
1129511295
constructor() {
@@ -129421,6 +129421,7 @@ INSERT INTERFACES HERE
129421129421
Liviu Tinta,
129422129422
Lobotom Dysmon,
129423129423
Logan<!-- on moz irc -->,
129424+
Logan Moore,
129424129425
Loune,
129425129426
Lucas Gadani,
129426129427
&#x0141;ukasz Pilorz,

0 commit comments

Comments
 (0)