From 631d517cd8c05bf897ccf8c2564f84935ff33222 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Wed, 13 Apr 2016 15:58:42 +0300 Subject: [PATCH] Set createDocument() content type from namespace Fixes #217. --- dom.bs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/dom.bs b/dom.bs index aca5d6b6b..1623f2164 100644 --- a/dom.bs +++ b/dom.bs @@ -449,6 +449,12 @@ The XML namespace is The XMLNS namespace is http://www.w3.org/2000/xmlns/. +The SVG namespace is +http://www.w3.org/2000/svg. + +The MathML namespace is +http://www.w3.org/1998/Math/MathML. + To validate a qualifiedName, run these steps:
    @@ -5089,6 +5095,23 @@ method, when invoked, must run these steps:
  1. document's origin is the origin of the context object's associated document. [[!HTML]] +

  2. document's content type is determined by + namespace: + +

    +
    HTML namespace +
    application/xhtml+xml + +
    SVG namespace +
    image/svg+xml + +
    MathML namespace +
    application/mathml+xml + +
    Any other namespace +
    application/xml +
    +
  3. Return document.