Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Commit

Permalink
Return a plain Document from DOMParser.parseFromString.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger committed Mar 13, 2014
1 parent 3e3289c commit eb55d5c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
11 changes: 9 additions & 2 deletions domparser
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,15 @@ method must run these steps, depending on <var title="">type</var>:
created <a class=external data-anolis-spec=dom href=http://dom.spec.whatwg.org/#concept-document title=concept-document>document</a>
and terminate these steps.

<li><p>Let <var title="">document</var> be a newly-created
<a href=http://dom.spec.whatwg.org/#xmldocument><code class=external data-anolis-spec=dom>XMLDocument</code></a>.
<li>
<p>Let <var title="">document</var> be a newly-created
<a href=http://dom.spec.whatwg.org/#document><code class=external data-anolis-spec=dom>Document</code></a>.

<p class=XXX>The intention is that this document does not support
<a href=http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#dom-xmldocument-load><code class=external data-anolis-spec=html title=dom-xmldocument-load>document.load()</code></a>.
It is not clear if it needs to be a
<a href=http://dom.spec.whatwg.org/#xmldocument><code class=external data-anolis-spec=dom>XMLDocument</code></a> for other reasons (such
as stringification).

<li>
<p>Let <var title="">root</var> be a new
Expand Down
11 changes: 9 additions & 2 deletions source.html
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,15 @@ <h2>The <code>DOMParser</code> interface</h2>
created <span title=concept-document data-anolis-spec=dom>document</span>
and terminate these steps.

<li><p>Let <var title>document</var> be a newly-created
<code data-anolis-spec=dom>XMLDocument</code>.
<li>
<p>Let <var title>document</var> be a newly-created
<code data-anolis-spec=dom>Document</code>.

<p class=XXX>The intention is that this document does not support
<code data-anolis-spec=html title=dom-xmldocument-load>document.load()</code>.
It is not clear if it needs to be a
<code data-anolis-spec=dom>XMLDocument</code> for other reasons (such
as stringification).

<li>
<p>Let <var title>root</var> be a new
Expand Down

0 comments on commit eb55d5c

Please sign in to comment.