XMLDocument

翻译不完整。 请帮助我们翻译这篇文章!

The XMLDocument interface represents an XML document. It inherits from the generic Document and does not add any specific methods or properties to it: nevertheless, several algorithms behave differently with the two types of documents.

属性

Also inherits properties from: Document

XMLDocument.async
Used with XMLDocument.load() to indicate an asynchronous request.

方法

Also inherits methods from: Document

XMLDocument.load()
Loads an XML document.

规范

规范 状态 备注
DOM
XMLDocument
Living Standard 没有变化。
DOM4
XMLDocument
Obsolete 初步定义。

浏览器兼容性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
XMLDocumentChrome Full support 34
Full support 34
No support 1 — 34
Notes
Notes Implemented as an alias for Document.
Edge Full support ≤18Firefox Full support 1IE No support NoOpera Full support 21
Full support 21
No support ? — 21
Notes
Notes Implemented as an alias for Document.
Safari Full support 10
Full support 10
No support 3 — 10
Notes
Notes Implemented as an alias for Document.
WebView Android Full support 37
Full support 37
No support 1 — 37
Notes
Notes Implemented as an alias for Document.
Chrome Android Full support 34
Full support 34
No support 18 — 34
Notes
Notes Implemented as an alias for Document.
Firefox Android Full support 4Opera Android Full support 21
Full support 21
No support ? — 21
Notes
Notes Implemented as an alias for Document.
Safari iOS Full support 10
Full support 10
No support 1 — 10
Notes
Notes Implemented as an alias for Document.
Samsung Internet Android Full support 2.0
Full support 2.0
No support 1.0 — 2.0
Notes
Notes Implemented as an alias for Document.
async
DeprecatedNon-standard
Chrome No support NoEdge No support NoFirefox No support 1 — 68
Notes
No support 1 — 68
Notes
Notes See bug 1328138 for removal.
IE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoFirefox Android No support 4 — 68
Notes
No support 4 — 68
Notes
Notes See bug 1328138 for removal.
Opera Android No support NoSafari iOS No support NoSamsung Internet Android No support No
load
DeprecatedNon-standard
Chrome No support NoEdge No support NoFirefox No support 3 — 68
Notes
No support 3 — 68
Notes
Notes See bug 332175 for removal.
No support 1 — 3
Notes
Notes Before version 3, Firefox supported cross-origin loads, even in cases where this would violate CORS.
IE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoFirefox Android No support 4 — 68
Notes
No support 4 — 68
Notes
Notes See bug 332175 for removal.
Opera Android No support NoSafari iOS No support NoSamsung Internet Android No support No

Legend

Full support  
Full support
No support  
No support
Non-standard. Expect poor cross-browser support.
Non-standard. Expect poor cross-browser support.
Deprecated. Not for use in new websites.
Deprecated. Not for use in new websites.
See implementation notes.
See implementation notes.

另请参见