Skip to content

Commit

Permalink
Warn that the XML syntax is not recommended
Browse files Browse the repository at this point in the history
Closes #10237.
  • Loading branch information
sideshowbarker authored Apr 8, 2024
1 parent 4b1310c commit ebbb1c0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -131812,6 +131812,13 @@ console.assert(container.firstChild instanceof SuperP);
<code>text/html</code> resources are discussed in the section above entitled "<span>The HTML
syntax</span>".</p>

<p class="warning" id="xml-syntax-not-recommended">Using the XML syntax is not recommended, for
reasons which include the fact that there is no specification which defines the rules for how an
XML parser must map a string of bytes or characters into a <code>Document</code> object, as well
as the fact that the XML syntax is essentially unmaintained — in that, it’s not expected that any
further features will ever be added to the XML syntax (even when such features have been added to
the <span data-x="the HTML syntax">HTML syntax</span>).</p>

<div w-nodev>

<h3 id="writing-xhtml-documents">Writing documents in the XML syntax</h3>
Expand Down

0 comments on commit ebbb1c0

Please sign in to comment.