Skip to content

Commit

Permalink
Fix example in HTMLElement constructor steps
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ThoseGrapefruits committed Oct 26, 2022
1 parent 7d8951c commit fe9c99d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source
Original file line number Diff line number Diff line change
Expand Up @@ -11289,7 +11289,7 @@ document.createElement("bad-1"); // (2)</code></pre>
instance of the class being constructed, before calling <code
data-x="">super()</code>:</p>

<pre><code class="js">let doSillyThing = false;
<pre><code class="js">let doSillyThing = true;

class DontDoThis extends HTMLElement {
constructor() {
Expand Down Expand Up @@ -129421,6 +129421,7 @@ INSERT INTERFACES HERE
Liviu Tinta,
Lobotom Dysmon,
Logan<!-- on moz irc -->,
Logan Moore,
Loune,
Lucas Gadani,
&#x0141;ukasz Pilorz,
Expand Down

0 comments on commit fe9c99d

Please sign in to comment.