Skip to content

Commit

Permalink
style: metadata spacing for web/api/x (mdn#20461)
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed Sep 9, 2022
1 parent f7dae62 commit 073f70e
Show file tree
Hide file tree
Showing 295 changed files with 295 additions and 0 deletions.
1 change: 1 addition & 0 deletions files/en-us/web/api/xmldocument/async/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ tags:
- async
browser-compat: api.XMLDocument.async
---

{{APIRef("DOM")}}{{Non-standard_header}}{{Deprecated_header}}

`document.async` can be set to indicate whether a {{DOMxRef("XMLDocument.load()")}} call should be an asynchronous or synchronous request. `true` is the default value, indicating that documents should be loaded asynchronously.
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xmldocument/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ tags:
- XMLDocument
browser-compat: api.XMLDocument
---

{{APIRef("DOM")}}

The **XMLDocument** interface represents an XML document. It inherits from the generic {{DOMxRef("Document")}} and does not add any specific methods or properties to it: nevertheless, several algorithms behave differently with the two types of documents.
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xmldocument/load/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ tags:
- load
browser-compat: api.XMLDocument.load
---

{{APIRef("DOM")}}{{Non-standard_Header}}{{Deprecated_Header}}

`document.load()` is a part of an old version of the W3C [DOM Level 3 Load & Save module](https://www.w3.org/TR/2003/WD-DOM-Level-3-LS-20030619/load-save.html#LS-DocumentLS). Can be used with {{DOMxRef("XMLDocument.async")}} to indicate whether the request is synchronous or asynchronous (the default). As of at least Gecko 1.9, this no longer supports cross-site loading of documents (Use {{DOMxRef("XMLHttpRequest")}} or {{DOMxRef("fetch()")}} instead).
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xmlhttprequest/abort/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ tags:
- stop
browser-compat: api.XMLHttpRequest.abort
---

{{APIRef('XMLHttpRequest')}}

The **`XMLHttpRequest.abort()`** method aborts the request if
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xmlhttprequest/abort_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ tags:
- abort
browser-compat: api.XMLHttpRequest.abort_event
---

{{APIRef}}

The `abort` event is fired when a request has been aborted, for example because the program called {{domxref("XMLHttpRequest.abort()")}}.
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xmlhttprequest/channel/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ tags:
- channel
- nsIChannel
---

{{APIRef('XMLHttpRequest')}}

XMLHttpRequest.channel is an `nsIChannel` that used by the object when performing the request. This is `null` if the channel hasn't been created yet. In the case of a multi-part request, this is the initial channel, not the different parts in the multi-part request. **Requires elevated privileges to access.**
1 change: 1 addition & 0 deletions files/en-us/web/api/xmlhttprequest/error_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ tags:
- XMLHttpRequest
browser-compat: api.XMLHttpRequest.error_event
---

{{APIRef}}

The `error` event is fired when the request encountered an error.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ tags:
- getAllResponseHeaders
browser-compat: api.XMLHttpRequest.getAllResponseHeaders
---

{{APIRef('XMLHttpRequest')}}

The {{domxref("XMLHttpRequest")}} method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ tags:
- getResponseHeader
browser-compat: api.XMLHttpRequest.getResponseHeader
---

{{APIRef('XMLHttpRequest')}}

The {{DOMxRef("XMLHttpRequest")}} method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- XMLHttpRequest
browser-compat: api.XMLHttpRequest
---

{{APIRef("XMLHttpRequest")}}

The W3C {{domxref("XMLHttpRequest")}} specification adds [HTML](/en-US/docs/Web/HTML) parsing support to {{domxref("XMLHttpRequest")}}, which originally supported only {{Glossary("XML")}} parsing. This feature allows Web apps to obtain an HTML resource as a parsed {{Glossary("DOM")}} using `XMLHttpRequest`.
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xmlhttprequest/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ tags:
- XMLHttpRequest
browser-compat: api.XMLHttpRequest
---

{{DefaultAPISidebar("XMLHttpRequest")}}

`XMLHttpRequest` (XHR) objects are used to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing.
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xmlhttprequest/load_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ tags:
- load
browser-compat: api.XMLHttpRequest.load_event
---

{{APIRef}}

The `load` event is fired when an {{domxref("XMLHttpRequest")}} transaction completes successfully.
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xmlhttprequest/loadend_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ tags:
- loadend
browser-compat: api.XMLHttpRequest.loadend_event
---

{{APIRef}}

The **`loadend`** event is fired when a request has completed, whether successfully (after {{domxref("XMLHttpRequest/load_event", "load")}}) or unsuccessfully (after {{domxref("XMLHttpRequest/abort_event", "abort")}} or {{domxref("XMLHttpRequest/error_event", "error")}}).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ tags:
- loadstart
browser-compat: api.XMLHttpRequest.loadstart_event
---

{{APIRef}}

The **`loadstart`** event is fired when a request has started to load data.
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xmlhttprequest/mozanon/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- XMLHttpRequest
- mozAnon
---

{{APIRef('XMLHttpRequest')}}

**`XMLHttpRequest.mozAnon`** is a boolean. If true, the request will be sent without cookies or authentication headers.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- XMLHttpRequest
- mozBackgroundRequest
---

{{APIRef('XMLHttpRequest')}}

> **Note:** This method is not available from Web content. It requires elevated privileges to access.
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xmlhttprequest/mozsystem/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- mozSystem
- origin
---

{{APIRef('XMLHttpRequest')}}

**`mozSystem`** is a boolean. If true, the same origin policy is not enforced on the request.
1 change: 1 addition & 0 deletions files/en-us/web/api/xmlhttprequest/mscaching/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ tags:
- Non-standard
- Property
---

{{APIRef("XMLHttpRequest")}}

{{Non-standard_header()}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ tags:
- Method
- Non-standard
---

{{APIRef("HTML DOM")}}

{{Non-standard_header()}}
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xmlhttprequest/open/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- open
browser-compat: api.XMLHttpRequest.open
---

{{APIRef('XMLHttpRequest')}}

The {{domxref("XMLHttpRequest")}} method **`open()`**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ tags:
- overrideMimeType
browser-compat: api.XMLHttpRequest.overrideMimeType
---

{{APIRef('XMLHttpRequest')}}

The {{domxref("XMLHttpRequest")}} method
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xmlhttprequest/progress_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ tags:
- progress
browser-compat: api.XMLHttpRequest.progress_event
---

{{APIRef}}

The **`progress`** event is fired periodically when a request receives more data.
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xmlhttprequest/readystate/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ tags:
- XMLHttpRequest
browser-compat: api.XMLHttpRequest.readyState
---

{{APIRef('XMLHttpRequest')}}

The **XMLHttpRequest.readyState** property returns the state an XMLHttpRequest client is in. An XHR client exists in one of the following states:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ tags:
- XMLHttpRequest
browser-compat: api.XMLHttpRequest.readystatechange_event
---

{{APIRef}}

The `readystatechange` event is fired whenever the {{domxref("XMLHttpRequest.readyState", "readyState")}} property of the {{domxref("XMLHttpRequest")}} changes.
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xmlhttprequest/response/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ tags:
- XMLHttpRequest
browser-compat: api.XMLHttpRequest.response
---

{{APIRef('XMLHttpRequest')}}

The {{domxref("XMLHttpRequest")}}
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xmlhttprequest/responsetext/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- responseText
browser-compat: api.XMLHttpRequest.responseText
---

{{APIRef('XMLHttpRequest')}}

The read-only {{domxref("XMLHttpRequest")}} property
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xmlhttprequest/responsetype/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ tags:
- responseType
browser-compat: api.XMLHttpRequest.responseType
---

{{APIRef('XMLHttpRequest')}}

The {{domxref("XMLHttpRequest")}} property
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xmlhttprequest/responseurl/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ tags:
- responseURL
browser-compat: api.XMLHttpRequest.responseURL
---

{{APIRef('XMLHttpRequest')}}

The read-only **`XMLHttpRequest.responseURL`** property returns the serialized URL of the response or the empty string if the URL is `null`. If the URL is returned, any URL fragment present in the URL will be stripped away. The value of `responseURL` will be the final URL obtained after any redirects.
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xmlhttprequest/responsexml/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ tags:
- upload
browser-compat: api.XMLHttpRequest.responseXML
---

{{APIRef('XMLHttpRequest')}}

The **`XMLHttpRequest.responseXML`** read-only property returns
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xmlhttprequest/send/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ tags:
- send
browser-compat: api.XMLHttpRequest.send
---

{{APIRef('XMLHttpRequest')}}

The {{domxref("XMLHttpRequest")}} method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ tags:
- setRequestHeader
browser-compat: api.XMLHttpRequest.setRequestHeader
---

{{APIRef('XMLHttpRequest')}}

The {{domxref("XMLHttpRequest")}} method
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xmlhttprequest/status/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- status
browser-compat: api.XMLHttpRequest.status
---

{{APIRef('XMLHttpRequest')}}

The read-only **`XMLHttpRequest.status`** property returns the numerical HTTP [status code](/en-US/docs/Web/HTTP/Status) of the `XMLHttpRequest`'s response.
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xmlhttprequest/statustext/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ tags:
- XMLHttpRequest Status
browser-compat: api.XMLHttpRequest.statusText
---

{{APIRef('XMLHttpRequest')}}

The read-only **`XMLHttpRequest.statusText`** property returns a string containing the response's status message as returned by the HTTP server. Unlike [`XMLHTTPRequest.status`](/en-US/docs/Web/API/XMLHttpRequest/status) which indicates a numerical status code, this property contains the _text_ of the response status, such as "OK" or "Not Found". If the request's [`readyState`](/en-US/docs/Web/API/XMLHttpRequest/readyState) is in `UNSENT` or `OPENED` state, the value of `statusText` will be an empty string.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ tags:
- XMLHttpRequest
- asynchronous
---

{{domxref('XMLHttpRequest')}} supports both synchronous and asynchronous communications. In general, however, asynchronous requests should be preferred to synchronous requests for performance reasons.

Synchronous requests block the execution of code which causes "freezing" on the screen and an unresponsive user experience.
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xmlhttprequest/timeout/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- timeout
browser-compat: api.XMLHttpRequest.timeout
---

{{APIRef('XMLHttpRequest')}}

The **`XMLHttpRequest.timeout`** property is an `unsigned long` representing the number of milliseconds a request can take before automatically being terminated. The default value is 0, which means there is no timeout. Timeout shouldn't be used for synchronous XMLHttpRequests requests used in a {{Glossary('document environment')}} or it will throw an `InvalidAccessError` exception. When a timeout happens, a [timeout](/en-US/docs/Web/API/XMLHttpRequest/timeout_event) event is fired.
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xmlhttprequest/timeout_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ tags:
- timeout
browser-compat: api.XMLHttpRequest.timeout_event
---

{{APIRef}}

The **`timeout`** event is fired when progression is terminated due to preset time expiring.
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xmlhttprequest/upload/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ tags:
- upload
browser-compat: api.XMLHttpRequest.upload
---

{{APIRef('XMLHttpRequest')}}

The {{domxref("XMLHttpRequest")}} `upload` property returns an {{domxref("XMLHttpRequestUpload")}} object that can be observed to monitor an upload's progress.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ tags:
- XMLHttpRequest
browser-compat: api.XMLHttpRequest
---

{{APIRef("XMLHttpRequest")}}

In this guide, we'll take a look at how to use
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ tags:
- withCredentials
browser-compat: api.XMLHttpRequest.withCredentials
---

{{APIRef('XMLHttpRequest')}}

The **`XMLHttpRequest.withCredentials`** property is a boolean value that indicates whether or not cross-site `Access-Control` requests should be made using credentials such as cookies, authorization headers or TLS client certificates. Setting `withCredentials` has no effect on same-site requests.
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xmlhttprequest/xmlhttprequest/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ tags:
- XMLHttpRequest
browser-compat: api.XMLHttpRequest.XMLHttpRequest
---

{{APIRef('XMLHttpRequest')}}

The **`XMLHttpRequest()`** constructor
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xmlhttprequesteventtarget/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ tags:
- XMLHttpRequest
browser-compat: api.XMLHttpRequestEventTarget
---

{{APIRef("XMLHttpRequest")}}

`XMLHttpRequestEventTarget` is the interface that describes the event handlers shared on {{domxref("XMLHttpRequest")}} and {{domxref("XMLHttpRequestUpload")}}.
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xmlserializer/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ tags:
- conversion
browser-compat: api.XMLSerializer
---

{{APIRef("XMLSerializer")}}

The `XMLSerializer` interface provides the {{domxref("XMLSerializer.serializeToString", "serializeToString()")}} method to construct an XML string representing a {{Glossary("DOM")}} tree.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ tags:
- serializeToString
browser-compat: api.XMLSerializer.serializeToString
---

{{APIRef("DOM Parsing")}}

The {{domxref("XMLSerializer")}} method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ tags:
- XPathEvaluator
browser-compat: api.XPathEvaluator.createExpression
---

{{APIRef("DOM XPath")}}

This method compiles an {{domxref("XPathExpression")}} which can then be used for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- XPathEvaluator
browser-compat: api.XPathEvaluator.createNSResolver
---

{{APIRef("DOM XPath")}}

This method adapts any DOM node to resolve namespaces so that an XPath expression can
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xpathevaluator/evaluate/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ tags:
- XPathEvaluator
browser-compat: api.XPathEvaluator.evaluate
---

{{APIRef("DOM XPath")}}

The `evaluate()` method of the {{domxref("XPathEvaluator")}} interface
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xpathevaluator/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ tags:
- XPathEvaluator
browser-compat: api.XPathEvaluator
---

{{APIRef("DOM XPath")}}

The `XPathEvaluator` interface allows to compile and evaluate {{Glossary("XPath")}} expressions.
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xpathexception/code/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ tags:
- XPathException
browser-compat: api.XPathException.code
---

{{APIRef("DOM XPath")}}{{Deprecated_Header}}

The **`code`** read-only property of the
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xpathexception/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ tags:
- XPath
browser-compat: api.XPathException
---

{{APIRef("DOM XPath")}}{{Deprecated_Header}}

In the [DOM XPath API](/en-US/docs/Web/XPath) the **`XPathException`** interface represents exception conditions that can be encountered while performing XPath operations.
Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/xpathexpression/evaluate/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ tags:
- XPathExpression
browser-compat: api.XPathExpression.evaluate
---

{{APIRef("DOM XPath")}}

The **`evaluate()`** method of the
Expand Down
Loading

0 comments on commit 073f70e

Please sign in to comment.