Skip to content

Commit 553d412

Browse files
committed
Editorial: clarify the xmlns notes by merging them
Closes #11215.
1 parent a4809f6 commit 553d412

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

source

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13669,13 +13669,9 @@ https://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%
1366913669

1367013670
<p class="note">In HTML, the <code data-x="">xmlns</code> attribute has absolutely no effect. It
1367113671
is basically a talisman. It is allowed merely to make migration to and from XML mildly easier.
13672-
When parsed by an <span>HTML parser</span>, the attribute ends up in no namespace, not the "<code
13673-
data-x="">http://www.w3.org/2000/xmlns/</code>" namespace like namespace declaration attributes in
13674-
XML do.</p>
13675-
13676-
<p class="note">In XML, an <code data-x="">xmlns</code> attribute is part of the namespace
13677-
declaration mechanism, and an element cannot actually have an <code data-x="">xmlns</code>
13678-
attribute in no namespace specified.</p>
13672+
When parsed by an <span>HTML parser</span>, the attribute ends up in no namespace. In XML, the
13673+
attribute is part of the namespace declaration mechanism and always ends up in the "<code
13674+
data-x="">http://www.w3.org/2000/xmlns/</code>" namespace.</p>
1367913675

1368013676
<hr>
1368113677

0 commit comments

Comments
 (0)