10BC0 Editorial: use "active function object" more often · whatwg/html@a225206 · GitHub
[go: up one dir, main page]

Skip to content

Commit a225206

Browse files
committed
Editorial: use "active function object" more often
In #1541, a few checks on the "currently-executing constructor" were added. The pull request review revealed that this phrase was not sufficiently precise, so it was replaced with "active function object", a term defined in the JavaScript specification. However, this was only done in one of the three places the imprecise term appears. This tidies up the other two.
1 parent feb77d0 commit a225206

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9702,7 +9702,7 @@ interface <dfn>HTMLUnknownElement</dfn> : <span>HTMLElement</span> { };</pre>
97029702

97039703
<ol>
97049704
<li>
9705-
<p>If the currently-executing constructor is not <code>HTMLElement</code>, then throw a
9705+
<p>If the <span>active function object</span> is not <code>HTMLElement</code>, then throw a
97069706
<code>TypeError</code> and abort these steps.</p>
97079707

97089708
<div class="example no-backref">
@@ -9712,8 +9712,8 @@ interface <dfn>HTMLUnknownElement</dfn> : <span>HTMLElement</span> { };</pre>
97129712
<pre>customElements.define("bad-1", class Bad1 extends HTMLParagraphElement {});</pre>
97139713

97149714
<p>In this case, during the (implicit) <code data-x="">super()</code> call that occurs when
9715-
constructing an instance of <code data-x="">Bad1</code>, the currently-executing constructor
9716-
is <code>HTMLParagraphElement</code>, not <code>HTMLElement</code>.</p>
9715+
constructing an instance of <code data-x="">Bad1</code>, the <span>active function
9716+
object</span> is <code>HTMLParagraphElement</code>, not <code>HTMLElement</code>.</p>
97179717
</div>
97189718
</li>
97199719
</ol>

0 commit comments

Comments
 (0)
0