From 4d64f357f8fc04b57fb9841925a2f7d452a7f0ce Mon Sep 17 00:00:00 2001 From: Stef Busking Date: Fri, 22 Mar 2019 16:21:11 +0100 Subject: [PATCH] Do not forbid resetting the default namespace when requiring well-formedness 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 #48 --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 4ba91e5..ea7889d 100644 --- a/index.html +++ b/index.html @@ -1364,7 +1364,8 @@

Extensibility

DOM APIs do allow creation of elements in the XMLNS namespace but with strict qualifications.

-
  • If the require well-formed flag is set (its value is true), and +
  • If the require well-formed flag is set (its value is true), the + value of attr's prefix attribute is not null, and the value of attr's value 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).