Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set createDocument() content type from namespace #218

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,9 @@ The <dfn export>XML namespace</dfn> is
The <dfn export>XMLNS namespace</dfn> is
<code>http://www.w3.org/2000/xmlns/</code>.

The <dfn export>SVG namespace</dfn> is
<code>http://www.w3.org/2000/svg</code>.

To <dfn export>validate</dfn> a <var>qualifiedName</var>, run these steps:

<ol>
Expand Down Expand Up @@ -5136,6 +5139,20 @@ 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>Any other namespace
<dd><code>application/xml</code>
</dl>

<li><p>Return <var>document</var>.
</ol>

Expand Down