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>

On second thought -- the HTML spec acknowledges SVG and MathML as things you can natively embed in HTML.  Given that, I think we should special-case MathML as well.  Alternatively, perhaps the <math> tag should be removed from HTML, unless anyone is ever going to use it in real life.  (I think Hixie added it on principle, not because there was significant implementer or author interest.)

---
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#r59548756

Received on Wednesday, 13 April 2016 13:40:53 UTC