Re: [whatwg/dom] Set createDocument() content type from namespace (#218)

> @@ -5089,6 +5095,23 @@ method, when invoked, must run these steps:
>   <li><p><var>document</var>'s <a>origin</a> is the <a>origin</a> of the <a>context object</a>'s
>   associated <a>document</a>. [[!HTML]]
>  
> + <li><p><var>document</var>'s <a for=Document>content type</a> is determined by
> + <var>namespace</var>:
> +
> + <dl class=switch>
> +  <dt><a>HTML namespace</a>
> +  <dd><code>application/xhtml+xml</code>
> +
> +  <dt><a>SVG namespace</a>
> +  <dd><code>image/svg+xml</code>
> +
> +  <dt><a>MathML namespace</a>
> +  <dd><code>application/mathml+xml</code>

MathML is supported in Gecko but Gecko uses `application/xml` here. I don't see any particular reason to use something different here; the main difference is for `createElement` but that doesn't special-case `application/mathml+xml` anyway, right?

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/218/files/631d517cd8c05bf897ccf8c2564f84935ff33222#r59566537

Received on Wednesday, 13 April 2016 15:13:46 UTC