From a73b9cd79a6527da319b1c25ae70946c3c03f095 Mon Sep 17 00:00:00 2001 From: James Clark Date: Mon, 16 Mar 2020 09:49:02 +0700 Subject: [PATCH] Revert "Fix bug with namespace undeclaration" This reverts commit 4def0fc9247b8ea773815fb5593e4a876d6331ba. --- lang/spec.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lang/spec.html b/lang/spec.html index 35d81189..ee149886 100644 --- a/lang/spec.html +++ b/lang/spec.html @@ -1051,6 +1051,9 @@
XML namespaces
that declares a prefix with that namespace and it is not redeclared by the [namespace attributes], then that prefix is used. Otherwise generate a prefix and add an AII to the [namespace attributes] to declare it. +
  • If the EII has no [namespace name] property, but a default namespace +declaration is in scope, then an xmlns="" AII is added to the +[namespace attributes] property to undeclare the default namespace.
  • If the EII has a [namespace name] property N, then we need to ensure that there is an applicable namespace declaration:
      @@ -1063,8 +1066,8 @@
      XML namespaces
      already declared as N; if there is one, set the [prefix] property of the EII to P;
    1. otherwise, if the [namespace attributes] property does not contain a default -namespace declaration or undeclaration, generate a default namespace declaration -for N and add it to the [namespace attributes] property;
    2. +namespace declaration, generate a default namespace declaration for N and add it +to the [namespace attributes] property;
    3. otherwise, generate a new prefix P, set the [prefix] property of the EII to P, and add an AII to the [namespace attributes] to declare it.