Skip to content

Commit 523f7a8

Browse files
domenicannevk
authored andcommitted
Remove XMLDocument.prototype.load
This is only implemented in Gecko, and is long-deprecated.
1 parent b568cf9 commit 523f7a8

File tree

1 file changed

+0
-108
lines changed

1 file changed

+0
-108
lines changed

source

-108
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,6 @@
384384
interface File : Blob { }; // File API
385385
interface FileList { }; // File API
386386
interface WebGLRenderingContext { }; // WebGL
387-
interface XMLDocument { }; // DOM
388387
interface HTMLCollection { }; // DOM
389388
interface DOMTokenList { attribute any value; }; // DOM
390389
interface DOMMatrix { }; // Geometry
@@ -3102,7 +3101,6 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
31023101
<li><dfn data-noexport="" data-x-href="https://dom.spec.whatwg.org/#interface-comment"><code>Comment</code></dfn> interface</li>
31033102
<li><dfn data-noexport="" data-x-href="https://dom.spec.whatwg.org/#interface-domimplementation"><code>DOMImplementation</code></dfn> interface</li>
31043103
<li><dfn data-noexport="" data-x="DOM Document" data-x-href="https://dom.spec.whatwg.org/#interface-document"><code>Document</code></dfn> interface</li>
3105-
<li><dfn data-noexport="" data-x-href="https://dom.spec.whatwg.org/#xmldocument"><code>XMLDocument</code></dfn> interface</li>
31063104
<li><dfn data-noexport="" data-x-href="https://dom.spec.whatwg.org/#interface-documentfragment"><code>DocumentFragment</code></dfn> interface</li>
31073105
<li><dfn data-noexport="" data-x-href="https://dom.spec.whatwg.org/#interface-documenttype"><code>DocumentType</code></dfn> interface</li>
31083106
<li><dfn data-noexport="" data-x-href="https://dom.spec.whatwg.org/#interface-childnode"><code>ChildNode</code></dfn> interface</li>
@@ -9357,112 +9355,6 @@ partial /*sealed*/ interface <dfn>Document</dfn> {
93579355

93589356

93599357

9360-
<div w-nodev> <!-- very deprecated API; use XHR instead -->
9361-
9362-
<h4>Loading XML documents</h4>
9363-
9364-
<pre class="idl">partial interface <span>XMLDocument</span> {
9365-
[<span>CEReactions</span>] boolean <span data-x="dom-XMLDocument-load">load</span>(USVString url);
9366-
};</pre>
9367-
9368-
<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/576 -->
9369-
<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/577 -->
9370-
<!-- http://www.hixie.ch/tests/adhoc/dom/level0/document/load/001.html -->
9371-
9372-
<p>The <dfn><code data-x="dom-XMLDocument-load">load(<var>url</var>)</code></dfn> method
9373-
must run the following steps:</p>
9374-
9375-
<ol>
9376-
9377-
<li><p>Let <var>document</var> be the <code>XMLDocument</code> object on which the
9378-
method was invoked.</p></li>
9379-
9380-
<li><p><span data-x="parse a url">Parse</span> <var>url</var>, relative to the <span>entry
9381-
settings object</span>. If this is not successful, throw a
9382-
<span>"<code>SyntaxError</code>"</span> <code>DOMException</code> and abort these steps.
9383-
Otherwise, let <var>urlRecord</var> be the <span>resulting URL record</span>.</p></li>
9384-
9385-
<li><p>If <var>urlRecord</var>'s <span data-x="concept-url-origin">origin</span> is not the same
9386-
as the <span>origin</span> of <var>document</var>, throw a
9387-
<span>"<code>SecurityError</code>"</span> <code>DOMException</code> and abort these
9388-
steps.</p></li>
9389-
9390-
<li><p>Remove all child nodes of <var>document</var>, without firing any mutation
9391-
events.</p></li> <!-- as of 2010-07-26, only Opera fired mutation events here. -->
9392-
9393-
<li><p>Set the <span>current document readiness</span> of <var>document</var> to "<code
9394-
data-x="">loading</code>".</p></li>
9395-
9396-
<li><p>Run the remainder of these steps <span>in parallel</span>, and return true from the
9397-
method.</p></li>
9398-
9399-
<li><p>Let <var>result</var> be a <code>Document</code> object.</p></li>
9400-
9401-
<li><p>Let <var>success</var> be false.</p></li>
9402-
9403-
<li><p>Let <var>request</var> be a new <span data-x="concept-request">request</span> whose
9404-
<span data-x="concept-request-url">url</span> is <var>urlRecord</var>, <span
9405-
data-x="concept-request-client">client</span> is <span>entry settings object</span>, <span
9406-
data-x="concept-request-destination">destination</span> is the empty string,
9407-
<span>synchronous flag</span> is set, <span data-x="concept-request-mode">mode</span> is "<code
9408-
data-x="">same-origin</code>", <span data-x="concept-request-credentials-mode">credentials
9409-
mode</span> is "<code data-x="">same-origin</code>", and whose <span>use-URL-credentials
9410-
flag</span> is set.</p></li>
9411-
9412-
<!--FETCH--><li><p>Let <var>response</var> be the result of <span
9413-
data-x="concept-fetch">fetching</span> <var>request</var>.
9414-
9415-
<li>
9416-
9417-
<p>If <var>response</var>'s <span data-x="Content-Type">Content-Type metadata</span> is an
9418-
<span>XML MIME type</span>, then run these substeps:</p>
9419-
9420-
<ol>
9421-
9422-
<li><p>Create a new <span>XML parser</span> associated with the <var>result</var>
9423-
document.</p></li>
9424-
9425-
<li><p>Pass this parser <var>response</var>'s <span
9426-
data-x="concept-response-body">body</span>.</p></li> <!-- no worries about scripts running;
9427-
there's no browsing context for the document so scripts are automatically disabled -->
9428-
9429-
<li><p>If there is an XML well-formedness or XML namespace well-formedness error, then remove
9430-
all child nodes from <var>result</var>. Otherwise let <var>success</var> be
9431-
true.</p></li>
9432-
9433-
</ol>
9434-
9435-
</li>
9436-
9437-
<li>
9438-
9439-
<p><span>Queue a task</span> to run the following steps.</p>
9440-
9441-
<ol>
9442-
9443-
<li><p>Set the <span>current document readiness</span> of <var>document</var> to
9444-
"<code data-x="">complete</code>".</p></li>
9445-
9446-
<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
9447-
<code>DocumentFragment</code> containing the new children had been inserted.</p></li> <!-- as
9448-
of 2010-07-26, both Firefox and Opera fired mutation events here. -->
9449-
9450-
<!-- If the document doesn't have no nodes here, at time of writing, Opera would leave the new
9451-
nodes and drop the parsed ones, while Firefox would basically abort instead, failing to fire
9452-
the 'load' event -->
9453-
9454-
<li><p><span>Fire a simple event</span> named <code data-x="event-load">load</code> at <var>document</var>.</p></li>
9455-
9456-
</ol>
9457-
9458-
</li>
9459-
9460-
</ol>
9461-
9462-
</div>
9463-
9464-
9465-
<!--TOPIC:HTML-->
94669358
<h3>Elements</h3>
94679359

94689360
<h4>Semantics</h4>

0 commit comments

Comments
 (0)