Skip to content

Commit

Permalink
Do not forbid resetting the default namespace when requiring well-for…
Browse files Browse the repository at this point in the history
…medness

At this point, the declaration may either be a prefix declaration or a
default namespace declaration. While prefix declarations for the null
namespace are not valid, it is allowed to reset the default namespace
this way.

Fixes w3c#48
  • Loading branch information
bwrrp committed Mar 22, 2019
1 parent 7fbc19e commit 4d64f35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,8 @@ <h2>Extensibility</h2>
<p class=note>DOM APIs do allow creation of elements in the <a>XMLNS namespace</a> but
with strict qualifications.</p>

<li>If the <a><var>require well-formed</var></a> flag is set (its value is <code>true</code>), and
<li>If the <a><var>require well-formed</var></a> flag is set (its value is <code>true</code>), the
value of <var>attr</var>'s <code><a>prefix</a></code> attribute is not <code>null</code>, and
the value of <var>attr</var>'s <code><a>value</a></code> attribute is the empty string,
then throw an exception; namespace prefix declarations cannot be used to undeclare a
namespace (use a default namespace declaration instead).
Expand Down

0 comments on commit 4d64f35

Please sign in to comment.