Skip to content

Commit

Permalink
Remove XMLDocument.prototype.load
Browse files Browse the repository at this point in the history
This is only implemented in Gecko, and is long-deprecated.
  • Loading branch information
domenic committed Jul 6, 2016
1 parent 1037914 commit c9dc776
Showing 1 changed file with 0 additions and 108 deletions.
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 @@ -9356,112 +9354,6 @@ partial /*sealed*/ interface <dfn>Document</dfn> {
content attribute.</p>



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

Expand Down

0 comments on commit c9dc776

Please sign in to comment.