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

Remove XMLDocument.prototype.load #1478

Merged
merged 2 commits into from
Jul 6, 2016
Merged
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
108 changes: 0 additions & 108 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,6 @@
interface File : Blob { }; // File API
interface FileList { }; // File API
interface WebGLRenderingContext { }; // WebGL
interface XMLDocument { }; // DOM
interface HTMLCollection { }; // DOM
interface DOMTokenList { attribute any value; }; // DOM
interface DOMMatrix { }; // Geometry
Expand Down Expand Up @@ -3102,7 +3101,6 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<li><dfn data-noexport="" data-x-href="https://dom.spec.whatwg.org/#interface-comment"><code>Comment</code></dfn> interface</li>
<li><dfn data-noexport="" data-x-href="https://dom.spec.whatwg.org/#interface-domimplementation"><code>DOMImplementation</code></dfn> interface</li>
<li><dfn data-noexport="" data-x="DOM Document" data-x-href="https://dom.spec.whatwg.org/#interface-document"><code>Document</code></dfn> interface</li>
<li><dfn data-noexport="" data-x-href="https://dom.spec.whatwg.org/#xmldocument"><code>XMLDocument</code></dfn> interface</li>
<li><dfn data-noexport="" data-x-href="https://dom.spec.whatwg.org/#interface-documentfragment"><code>DocumentFragment</code></dfn> interface</li>
<li><dfn data-noexport="" data-x-href="https://dom.spec.whatwg.org/#interface-documenttype"><code>DocumentType</code></dfn> interface</li>
<li><dfn data-noexport="" data-x-href="https://dom.spec.whatwg.org/#interface-childnode"><code>ChildNode</code></dfn> interface</li>
Expand Down Expand Up @@ -9357,112 +9355,6 @@ partial /*sealed*/ interface <dfn>Document</dfn> {



<div w-nodev> <!-- very deprecated API; use XHR instead -->

<h4>Loading XML documents</h4>

<pre class="idl">partial interface <span>XMLDocument</span> {
[<span>CEReactions</span>] boolean <span data-x="dom-XMLDocument-load">load</span>(USVString url);
};</pre>

<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/576 -->
<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/577 -->
<!-- http://www.hixie.ch/tests/adhoc/dom/level0/document/load/001.html -->

<p>The <dfn><code data-x="dom-XMLDocument-load">load(<var>url</var>)</code></dfn> method
must run the following steps:</p>

<ol>

<li><p>Let <var>document</var> be the <code>XMLDocument</code> object on which the
method was invoked.</p></li>

<li><p><span data-x="parse a url">Parse</span> <var>url</var>, relative to the <span>entry
settings object</span>. If this is not successful, throw a
<span>"<code>SyntaxError</code>"</span> <code>DOMException</code> and abort these steps.
Otherwise, let <var>urlRecord</var> be the <span>resulting URL record</span>.</p></li>

<li><p>If <var>urlRecord</var>'s <span data-x="concept-url-origin">origin</span> is not the same
as the <span>origin</span> of <var>document</var>, throw a
<span>"<code>SecurityError</code>"</span> <code>DOMException</code> and abort these
steps.</p></li>

<li><p>Remove all child nodes of <var>document</var>, without firing any mutation
events.</p></li> <!-- as of 2010-07-26, only Opera fired mutation events here. -->

<li><p>Set the <span>current document readiness</span> of <var>document</var> to "<code
data-x="">loading</code>".</p></li>

<li><p>Run the remainder of these steps <span>in parallel</span>, and return true from the
method.</p></li>

<li><p>Let <var>result</var> be a <code>Document</code> object.</p></li>

<li><p>Let <var>success</var> be false.</p></li>

<li><p>Let <var>request</var> be a new <span data-x="concept-request">request</span> whose
<span data-x="concept-request-url">url</span> is <var>urlRecord</var>, <span
data-x="concept-request-client">client</span> is <span>entry settings object</span>, <span
data-x="concept-request-destination">destination</span> is the empty string,
<span>synchronous flag</span> is set, <span data-x="concept-request-mode">mode</span> is "<code
data-x="">same-origin</code>", <span data-x="concept-request-credentials-mode">credentials
mode</span> is "<code data-x="">same-origin</code>", and whose <span>use-URL-credentials
flag</span> is set.</p></li>

<!--FETCH--><li><p>Let <var>response</var> be the result of <span
data-x="concept-fetch">fetching</span> <var>request</var>.

<li>

<p>If <var>response</var>'s <span data-x="Content-Type">Content-Type metadata</span> is an
<span>XML MIME type</span>, then run these substeps:</p>

<ol>

<li><p>Create a new <span>XML parser</span> associated with the <var>result</var>
document.</p></li>

<li><p>Pass this parser <var>response</var>'s <span
data-x="concept-response-body">body</span>.</p></li> <!-- no worries about scripts running;
there's no browsing context for the document so scripts are automatically disabled -->

<li><p>If there is an XML well-formedness or XML namespace well-formedness error, then remove
all child nodes from <var>result</var>. Otherwise let <var>success</var> be
true.</p></li>

</ol>

</li>

<li>

<p><span>Queue a task</span> to run the following steps.</p>

<ol>

<li><p>Set the <span>current document readiness</span> of <var>document</var> to
"<code data-x="">complete</code>".</p></li>

<li><p>Replace all the children of <var>document</var> by the children of <var>result</var> (even if it has no children), firing mutation events as if a
<code>DocumentFragment</code> containing the new children had been inserted.</p></li> <!-- as
of 2010-07-26, both Firefox and Opera fired mutation events here. -->

<!-- If the document doesn't have no nodes here, at time of writing, Opera would leave the new
nodes and drop the parsed ones, while Firefox would basically abort instead, failing to fire
the 'load' event -->

<li><p><span>Fire a simple event</span> named <code data-x="event-load">load</code> at <var>document</var>.</p></li>

</ol>

</li>

</ol>

</div>


<!--TOPIC:HTML-->
<h3>Elements</h3>

<h4>Semantics</h4>
Expand Down