diff --git a/source b/source index 8b33a524d91..246348626f4 100644 --- a/source +++ b/source @@ -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 @@ -3102,7 +3101,6 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
Comment
interfaceDOMImplementation
interfaceDocument
interfaceXMLDocument
interfaceDocumentFragment
interfaceDocumentType
interfaceChildNode
interfacepartial interface XMLDocument { - [CEReactions] boolean load(USVString url); -};- - - - - -
The load(url)
method
- must run the following steps:
Let document be the XMLDocument
object on which the
- method was invoked.
Parse url, relative to the entry
- settings object. If this is not successful, throw a
- "SyntaxError
" DOMException
and abort these steps.
- Otherwise, let urlRecord be the resulting URL record.
If urlRecord's origin is not the same
- as the origin of document, throw a
- "SecurityError
" DOMException
and abort these
- steps.
Remove all child nodes of document, without firing any mutation - events.
Set the current document readiness of document to "loading
".
Run the remainder of these steps in parallel, and return true from the - method.
Let result be a Document
object.
Let success be false.
Let request be a new request whose
- url is urlRecord, client is entry settings object, destination is the empty string,
- synchronous flag is set, mode is "same-origin
", credentials
- mode is "same-origin
", and whose use-URL-credentials
- flag is set.
Let response be the result of fetching request. - -
If response's Content-Type metadata is an - XML MIME type, then run these substeps:
- -Create a new XML parser associated with the result - document.
Pass this parser response's body.
If there is an XML well-formedness or XML namespace well-formedness error, then remove - all child nodes from result. Otherwise let success be - true.
Queue a task to run the following steps.
- -Set the current document readiness of document to
- "complete
".
Replace all the children of document by the children of result (even if it has no children), firing mutation events as if a
- DocumentFragment
containing the new children had been inserted.
Fire a simple event named load
at document.