Skip to content

Commit 26c7197

Browse files
authored
Add an example of a non-HTML/SVG element
Closes #4232. This also excludes the sentence "Features shared between HTML and SVG elements use the HTMLOrSVGElement interface mixin: [SVG]" from the developer's edition, since the IDL for HTMLOrSVGElement is not shown anyway.
1 parent 8d0dfb1 commit 26c7197

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

source

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10324,8 +10324,6 @@ interface <dfn>HTMLUnknownElement</dfn> : <span>HTMLElement</span> {
1032410324
a linear transition of the element's prototype chain, from <code>HTMLElement</code> to a subclass,
1032510325
instead of a lateral one, from <code>HTMLUnknownElement</code> to an unrelated subclass.</p>
1032610326

10327-
</div>
10328-
1032910327
<p>Features shared between HTML and SVG elements use the <code>HTMLOrSVGElement</code> interface
1033010328
mixin: <ref spec=SVG></p>
1033110329

@@ -10339,6 +10337,16 @@ interface <dfn>HTMLUnknownElement</dfn> : <span>HTMLElement</span> {
1033910337
void <span data-x="dom-blur">blur</span>();
1034010338
};</code></pre>
1034110339

10340+
</div>
10341+
10342+
<div class="example">
10343+
<p>An example of an element that is neither an HTML nor SVG element is one created as
10344+
follows:</p>
10345+
10346+
<pre><code class="html" data-x="">const el = document.createElementNS("some namespace", "example");
10347+
console.assert(el.constructor === Element);</code></pre>
10348+
</div>
10349+
1034210350
<div w-nodev>
1034310351

1034410352
<h4 id="html-element-constructors">HTML element constructors</h4>

0 commit comments

Comments
 (0)