From df127c202ba8ac43b406114b076d1bbc387bb4cb 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 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/dom.bs b/dom.bs index 4fbea0ab..90be8bb7 100644 --- a/dom.bs +++ b/dom.bs @@ -449,6 +449,9 @@ The XML namespace is The XMLNS namespace is http://www.w3.org/2000/xmlns/. +The SVG namespace is +http://www.w3.org/2000/svg. + To validate a qualifiedName, run these steps:
    @@ -5136,6 +5139,20 @@ 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 + +
    Any other namespace +
    application/xml +
    +
  3. Return document.