Skip to content

Commit 182e89f

Browse files
domenicannevk
authored andcommitted
Clarify that the namespace check in "create an element" is redundant
Fixes whatwg/html#1402.
1 parent 1594aa5 commit 182e89f

File tree

2 files changed

+981
-962
lines changed

2 files changed

+981
-962
lines changed

dom.bs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5732,8 +5732,16 @@ given a <var>document</var>, <var>localName</var>, <var>namespace</var>, and opt
57325732
<li><p>If <var>result</var>'s <a>node document</a> is not <var>document</var>, then
57335733
<a>throw</a> a {{NotSupportedError}}.
57345734

5735-
<li><p>If <var>result</var>'s <a for=Element>namespace</a> is not the <a>HTML namespace</a>,
5736-
then <a>throw</a> a {{NotSupportedError}}.
5735+
<li>
5736+
<p>If <var>result</var>'s <a for=Element>namespace</a> is not the <a>HTML namespace</a>,
5737+
then <a>throw</a> a {{NotSupportedError}}.
5738+
5739+
<p class="note">As of the time of this writing, every element that implements the
5740+
{{HTMLElement}} interface is also in the <a>HTML namespace</a>, so this check is currently
5741+
redundant with the above brand check. However, this is not guaranteed to be true forever in
5742+
the face of potential specification changes, such as converging certain SVG and HTML
5743+
interfaces.
5744+
</li>
57375745

57385746
<li><p>If <var>result</var>'s <a for=Element>local name</a> is not equal to
57395747
<var>localName</var>, then <a>throw</a> a {{NotSupportedError}}.

0 commit comments

Comments
 (0)