From ce85e3fb7865330e4ac2a6dad25db5cf5d27ea74 Mon Sep 17 00:00:00 2001 From: Brian Thomas Smith Date: Tue, 12 Mar 2024 00:58:17 +0100 Subject: [PATCH] chore(api): Make macros with line breaks span a single line only, 2 of 4 (#32582) * chore(api): Make macros with line breaks span a single line only, 2 of 4 * Apply suggestions from code review - just a few fixes to odd line breaks * Update files/en-us/web/api/element/id/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: Hamish Willee Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .../en-us/web/api/dompoint/frompoint_static/index.md | 5 ++--- files/en-us/web/api/dompoint/w/index.md | 4 ++-- files/en-us/web/api/dompoint/x/index.md | 6 ++---- files/en-us/web/api/dompoint/y/index.md | 3 +-- files/en-us/web/api/dompoint/z/index.md | 3 +-- .../api/dompointreadonly/frompoint_static/index.md | 4 ++-- files/en-us/web/api/dompointreadonly/x/index.md | 3 +-- files/en-us/web/api/dompointreadonly/y/index.md | 3 +-- files/en-us/web/api/dompointreadonly/z/index.md | 3 +-- files/en-us/web/api/element/id/index.md | 6 ++---- files/en-us/web/api/element/scrollheight/index.md | 4 ++-- files/en-us/web/api/element/scrollwidth/index.md | 4 ++-- files/en-us/web/api/element/setcapture/index.md | 3 +-- files/en-us/web/api/event/cancelable/index.md | 7 ++----- files/en-us/web/api/event/eventphase/index.md | 3 +-- .../web/api/eventtarget/addeventlistener/index.md | 6 +----- .../web/api/featurepolicy/allowedfeatures/index.md | 3 +-- files/en-us/web/api/fetchevent/respondwith/index.md | 12 ++++++------ files/en-us/web/api/filereader/result/index.md | 3 +-- .../filesystemdirectoryentry/createreader/index.md | 4 ++-- files/en-us/web/api/filesystementry/name/index.md | 3 +-- .../web/api/filesystemhandle/issameentry/index.md | 3 +-- files/en-us/web/api/focusevent/focusevent/index.md | 3 +-- files/en-us/web/api/gamepad/buttons/index.md | 3 +-- files/en-us/web/api/history/go/index.md | 3 +-- files/en-us/web/api/htmlaudioelement/audio/index.md | 4 ++-- files/en-us/web/api/htmlelement/dataset/index.md | 4 ++-- .../web/api/htmlimageelement/crossorigin/index.md | 6 +++--- files/en-us/web/api/htmlimageelement/image/index.md | 3 +-- .../web/api/htmlimageelement/naturalheight/index.md | 3 +-- .../web/api/htmlimageelement/naturalwidth/index.md | 3 +-- files/en-us/web/api/htmlimageelement/sizes/index.md | 5 ++--- files/en-us/web/api/htmlimageelement/srcset/index.md | 8 ++++---- files/en-us/web/api/htmlimageelement/width/index.md | 3 +-- files/en-us/web/api/htmlimageelement/x/index.md | 4 ++-- .../en-us/web/api/htmlinputelement/stepdown/index.md | 7 +++---- files/en-us/web/api/htmlinputelement/stepup/index.md | 3 +-- files/en-us/web/api/htmlmediaelement/ended/index.md | 3 +-- .../requestpictureinpicture/index.md | 3 +-- .../web/api/idledeadline/timeremaining/index.md | 4 ++-- files/en-us/web/api/idledetector/index.md | 3 +-- files/en-us/web/api/keyboardevent/charcode/index.md | 3 +-- .../web/api/keyboardevent/initkeyevent/index.md | 3 +-- files/en-us/web/api/mediadeviceinfo/groupid/index.md | 8 +++----- .../mediaelement/index.md | 5 ++--- files/en-us/web/api/mediaquerylist/media/index.md | 3 +-- .../en-us/web/api/mediarecorder/error_event/index.md | 8 ++------ .../web/api/mediarecorder/mediarecorder/index.md | 3 +-- files/en-us/web/api/mediarecorder/start/index.md | 3 +-- .../web/api/mediarecordererrorevent/error/index.md | 7 +++---- .../web/api/mediasession/setpositionstate/index.md | 3 +-- .../web/api/mediasource/addsourcebuffer/index.md | 5 +---- .../web/api/mediastream/getaudiotracks/index.md | 4 ++-- .../web/api/mediastream/getvideotracks/index.md | 3 +-- 54 files changed, 87 insertions(+), 141 deletions(-) diff --git a/files/en-us/web/api/dompoint/frompoint_static/index.md b/files/en-us/web/api/dompoint/frompoint_static/index.md index aa5145487c18367..0a90a84e35e941d 100644 --- a/files/en-us/web/api/dompoint/frompoint_static/index.md +++ b/files/en-us/web/api/dompoint/frompoint_static/index.md @@ -60,9 +60,8 @@ const mutablePoint = DOMPoint.fromPoint(readOnlyPoint); ### Creating a 2D point This sample creates a 2D point, specifying an inline object that includes the values to -use for {{domxref("DOMPointReadOnly.x", "x")}} and {{domxref("DOMPointReadOnly.y", - "y")}}. The _z_ and _w_ properties are allowed to keep their default -values (0 and 1 respectively). +use for {{domxref("DOMPointReadOnly.x", "x")}} and {{domxref("DOMPointReadOnly.y", "y")}}. +The _z_ and _w_ properties are allowed to keep their default values (0 and 1 respectively). ```js const center = DOMPoint.fromPoint({ x: 75, y: -50, z: -55, w: 0.25 }); diff --git a/files/en-us/web/api/dompoint/w/index.md b/files/en-us/web/api/dompoint/w/index.md index 38f6f39ae26df24..c8231e508bbc9f2 100644 --- a/files/en-us/web/api/dompoint/w/index.md +++ b/files/en-us/web/api/dompoint/w/index.md @@ -16,8 +16,8 @@ point in space. A double-precision floating-point value indicating the _w_ perspective value for the point. This value is **unrestricted**, meaning that it is allowed to be -infinite or invalid (that is, its value may be {{jsxref("NaN")}} or {{jsxref("Infinity", - "±Infinity")}}). The default is 1.0. +infinite or invalid (that is, its value may be {{jsxref("NaN")}} or {{jsxref("Infinity", "±Infinity")}}). +The default is 1.0. ## Specifications diff --git a/files/en-us/web/api/dompoint/x/index.md b/files/en-us/web/api/dompoint/x/index.md index 353a9d94c5a8139..0340bc3eb9b8a9e 100644 --- a/files/en-us/web/api/dompoint/x/index.md +++ b/files/en-us/web/api/dompoint/x/index.md @@ -20,8 +20,7 @@ have altered the orientation of the axes. A double-precision floating-point value indicating the x coordinate's value for the point. This value is **unrestricted**, meaning that it is allowed to be -infinite or invalid (that is, its value may be {{jsxref("NaN")}} or {{jsxref("Infinity", - "±Infinity")}}). +infinite or invalid (that is, its value may be {{jsxref("NaN")}} or {{jsxref("Infinity", "±Infinity")}}). ## Specifications @@ -34,5 +33,4 @@ infinite or invalid (that is, its value may be {{jsxref("NaN")}} or {{jsxref("In ## See also - The other coordinate properties: {{domxref("DOMPoint.y", "y")}}, - {{domxref("DOMPoint.z", "z")}}, and the perspective value, {{domxref("DOMPoint.w", - "w")}}. + {{domxref("DOMPoint.z", "z")}}, and the perspective value, {{domxref("DOMPoint.w", "w")}}. diff --git a/files/en-us/web/api/dompoint/y/index.md b/files/en-us/web/api/dompoint/y/index.md index c342fb564850a32..47ee54d15e1d708 100644 --- a/files/en-us/web/api/dompoint/y/index.md +++ b/files/en-us/web/api/dompoint/y/index.md @@ -33,5 +33,4 @@ to be infinite or invalid (that is, its value may be {{jsxref("NaN")}} or ## See also - The other coordinate properties: {{domxref("DOMPoint.x", "x")}}, - {{domxref("DOMPoint.z", "z")}}, and the perspective value, {{domxref("DOMPoint.w", - "w")}}. + {{domxref("DOMPoint.z", "z")}}, and the perspective value, {{domxref("DOMPoint.w", "w")}}. diff --git a/files/en-us/web/api/dompoint/z/index.md b/files/en-us/web/api/dompoint/z/index.md index 5fc3bab23c08f1a..7d72ffa3ecd94fc 100644 --- a/files/en-us/web/api/dompoint/z/index.md +++ b/files/en-us/web/api/dompoint/z/index.md @@ -34,5 +34,4 @@ to be infinite or invalid (that is, its value may be {{jsxref("NaN")}} or ## See also - The other coordinate properties: {{domxref("DOMPoint.x", "x")}}, - {{domxref("DOMPoint.y", "y")}}, and the perspective value, {{domxref("DOMPoint.w", - "w")}}. + {{domxref("DOMPoint.y", "y")}}, and the perspective value, {{domxref("DOMPoint.w", "w")}}. diff --git a/files/en-us/web/api/dompointreadonly/frompoint_static/index.md b/files/en-us/web/api/dompointreadonly/frompoint_static/index.md index cfd8b87a1c7cf2d..8a2e779495f92ac 100644 --- a/files/en-us/web/api/dompointreadonly/frompoint_static/index.md +++ b/files/en-us/web/api/dompointreadonly/frompoint_static/index.md @@ -46,8 +46,8 @@ A new {{domxref("DOMPointReadOnly")}} object (which is identical to the source p ### Creating a 2D point This sample creates a 2D point, specifying an inline object that includes the values to -use for {{domxref("DOMPointReadOnly.x", "x")}} and {{domxref("DOMPointReadOnly.y", - "y")}}. The `z` and `w` properties are allowed to keep their +use for {{domxref("DOMPointReadOnly.x", "x")}} and {{domxref("DOMPointReadOnly.y", "y")}}. +The `z` and `w` properties are allowed to keep their default values (`0` and `1` respectively). ```js diff --git a/files/en-us/web/api/dompointreadonly/x/index.md b/files/en-us/web/api/dompointreadonly/x/index.md index f24bcfc209e955d..6b03d55357a4076 100644 --- a/files/en-us/web/api/dompointreadonly/x/index.md +++ b/files/en-us/web/api/dompointreadonly/x/index.md @@ -20,8 +20,7 @@ In general, positive values `x` mean to the right, and negative values of A double-precision floating-point value indicating the x coordinate's value for the point. This value is **unrestricted**, meaning that it is allowed to be -infinite or invalid (that is, its value may be {{jsxref("NaN")}} or {{jsxref("Infinity", - "±Infinity")}}). +infinite or invalid (that is, its value may be {{jsxref("NaN")}} or {{jsxref("Infinity", "±Infinity")}}). ## Specifications diff --git a/files/en-us/web/api/dompointreadonly/y/index.md b/files/en-us/web/api/dompointreadonly/y/index.md index 8fb0f50ed91960e..7465bc408bf0611 100644 --- a/files/en-us/web/api/dompointreadonly/y/index.md +++ b/files/en-us/web/api/dompointreadonly/y/index.md @@ -22,8 +22,7 @@ In general, positive values of `y` mean downward, and negative values of A double-precision floating-point value indicating the y coordinate's value for the point. This value is **unrestricted**, meaning that it is allowed to be -infinite or invalid (that is, its value may be {{jsxref("NaN")}} or {{jsxref("Infinity", - "±Infinity")}}). +infinite or invalid (that is, its value may be {{jsxref("NaN")}} or {{jsxref("Infinity", "±Infinity")}}). ## Specifications diff --git a/files/en-us/web/api/dompointreadonly/z/index.md b/files/en-us/web/api/dompointreadonly/z/index.md index c5b942a252c0b18..94c413e22a3869b 100644 --- a/files/en-us/web/api/dompointreadonly/z/index.md +++ b/files/en-us/web/api/dompointreadonly/z/index.md @@ -23,8 +23,7 @@ screen), assuming no transforms have resulted in a reversal. A double-precision floating-point value indicating the z coordinate's value for the point. This value is **unrestricted**, meaning that it is allowed to be -infinite or invalid (that is, its value may be {{jsxref("NaN")}} or {{jsxref("Infinity", - "±Infinity")}}). +infinite or invalid (that is, its value may be {{jsxref("NaN")}} or {{jsxref("Infinity", "±Infinity")}}). ## Specifications diff --git a/files/en-us/web/api/element/id/index.md b/files/en-us/web/api/element/id/index.md index 8facee951575fa8..926f97fee36ac93 100644 --- a/files/en-us/web/api/element/id/index.md +++ b/files/en-us/web/api/element/id/index.md @@ -15,10 +15,8 @@ global attribute. If the `id` value is not the empty string, it must be unique in a document. -The `id` is often used with {{domxref("Document.getElementById()", - "getElementById()")}} to retrieve a particular element. Another common case is to use an -element's [ID as a selector](/en-US/docs/Web/CSS/ID_selectors) when styling -the document with [CSS](/en-US/docs/Web/CSS). +The `id` is often used with {{domxref("Document.getElementById()", "getElementById()")}} to retrieve a particular element. +Another common case is to use an element's [ID as a selector](/en-US/docs/Web/CSS/ID_selectors) when styling the document with [CSS](/en-US/docs/Web/CSS). > **Note:** Identifiers are case-sensitive, but you should avoid creating > IDs that differ only in the capitalization. diff --git a/files/en-us/web/api/element/scrollheight/index.md b/files/en-us/web/api/element/scrollheight/index.md index e8c418d8f70ec92..499105c28a293bd 100644 --- a/files/en-us/web/api/element/scrollheight/index.md +++ b/files/en-us/web/api/element/scrollheight/index.md @@ -16,8 +16,8 @@ screen due to overflow. The `scrollHeight` value is equal to the minimum height the element would require in order to fit all the content in the viewport without using a vertical -scrollbar. The height is measured in the same way as {{domxref("Element.clientHeight", - "clientHeight")}}: it includes the element's padding, but not its border, margin or +scrollbar. The height is measured in the same way as {{domxref("Element.clientHeight", "clientHeight")}}: +it includes the element's padding, but not its border, margin or horizontal scrollbar (if present). It can also include the height of pseudo-elements such as {{cssxref("::before")}} or {{cssxref("::after")}}. If the element's content can fit without a need for vertical scrollbar, its `scrollHeight` is equal to diff --git a/files/en-us/web/api/element/scrollwidth/index.md b/files/en-us/web/api/element/scrollwidth/index.md index db1767aeec9ed08..0d6f62c9c4fe15f 100644 --- a/files/en-us/web/api/element/scrollwidth/index.md +++ b/files/en-us/web/api/element/scrollwidth/index.md @@ -14,8 +14,8 @@ screen due to overflow. The `scrollWidth` value is equal to the minimum width the element would require in order to fit all the content in the viewport without using a horizontal -scrollbar. The width is measured in the same way as {{domxref("Element.clientWidth", - "clientWidth")}}: it includes the element's padding, but not its border, margin or +scrollbar. The width is measured in the same way as {{domxref("Element.clientWidth", "clientWidth")}}: +it includes the element's padding, but not its border, margin or vertical scrollbar (if present). It can also include the width of pseudo-elements such as {{cssxref("::before")}} or {{cssxref("::after")}}. If the element's content can fit without a need for horizontal scrollbar, its `scrollWidth` is equal to diff --git a/files/en-us/web/api/element/setcapture/index.md b/files/en-us/web/api/element/setcapture/index.md index 5e58802a8ede7fd..a70a7d34f98b1ea 100644 --- a/files/en-us/web/api/element/setcapture/index.md +++ b/files/en-us/web/api/element/setcapture/index.md @@ -12,8 +12,7 @@ browser-compat: api.Element.setCapture {{Deprecated_Header}}{{non-standard_header}}{{ APIRef("DOM") }} Call this method during the handling of a mousedown event to retarget all mouse events -to this element until the mouse button is released or {{ - domxref("document.releaseCapture()") }} is called. +to this element until the mouse button is released or {{domxref("document.releaseCapture()")}} is called. > **Warning:** This interface never had much cross-browser > support and you probably looking for {{domxref("element.setPointerCapture")}} instead, diff --git a/files/en-us/web/api/event/cancelable/index.md b/files/en-us/web/api/event/cancelable/index.md index 1af117d40e826ba..43e79c8e4fbfae7 100644 --- a/files/en-us/web/api/event/cancelable/index.md +++ b/files/en-us/web/api/event/cancelable/index.md @@ -29,8 +29,7 @@ method on the event. This keeps the implementation from executing the default ac that is associated with the event. Event listeners that handle multiple kinds of events may want to check -`cancelable` before invoking their {{domxref("event.preventDefault", - "preventDefault()")}} methods. +`cancelable` before invoking their {{domxref("event.preventDefault", "preventDefault()")}} methods. ## Value @@ -39,9 +38,7 @@ canceled. ## Example -For example, browser vendors are proposing that the {{domxref("Element/wheel_event", - "wheel")}} event can only be canceled [the first time the listener is called](https://github.com/WICG/interventions/issues/33) — any following `wheel` events cannot be -canceled. +For example, browser vendors are proposing that the {{domxref("Element/wheel_event", "wheel")}} event can only be canceled [the first time the listener is called](https://github.com/WICG/interventions/issues/33) — any following `wheel` events cannot be canceled. ```js function preventScrollWheel(event) { diff --git a/files/en-us/web/api/event/eventphase/index.md b/files/en-us/web/api/event/eventphase/index.md index bc8eec92fcefe10..8570390785f5170 100644 --- a/files/en-us/web/api/event/eventphase/index.md +++ b/files/en-us/web/api/event/eventphase/index.md @@ -29,8 +29,7 @@ flow. Possible values are: called are triggered during this phase. - `Event.AT_TARGET (2)` - : The event has arrived at - {{domxref("EventTarget", "the event's target", "", - 1)}}. + {{domxref("EventTarget", "the event's target", "", 1)}}. Event listeners registered for this phase are called at this time. If {{domxref("Event.bubbles")}} is `false`, processing the event is finished after this phase is complete. diff --git a/files/en-us/web/api/eventtarget/addeventlistener/index.md b/files/en-us/web/api/eventtarget/addeventlistener/index.md index 52f2d38bcd8ed2c..1263d6ca91cf896 100644 --- a/files/en-us/web/api/eventtarget/addeventlistener/index.md +++ b/files/en-us/web/api/eventtarget/addeventlistener/index.md @@ -230,11 +230,7 @@ my_element.addEventListener("click", (e) => { }); ``` -If an event handler (for example, {{domxref("Element.click_event", - "onclick")}}) is specified on an element in the HTML source, the JavaScript code in the -attribute value is effectively wrapped in a handler function that binds the value of -`this` in a manner consistent with the `addEventListener()`; an -occurrence of `this` within the code represents a reference to the element. +If an event handler (for example, {{domxref("Element.click_event", "onclick")}}) is specified on an element in the HTML source, the JavaScript code in the attribute value is effectively wrapped in a handler function that binds the value of `this` in a manner consistent with the `addEventListener()`; an occurrence of `this` within the code represents a reference to the element. ```html diff --git a/files/en-us/web/api/featurepolicy/allowedfeatures/index.md b/files/en-us/web/api/featurepolicy/allowedfeatures/index.md index ed5d5bfcfbbf062..bc3c3365e9f46fd 100644 --- a/files/en-us/web/api/featurepolicy/allowedfeatures/index.md +++ b/files/en-us/web/api/featurepolicy/allowedfeatures/index.md @@ -14,8 +14,7 @@ The **`allowedFeatures()`** method of the {{DOMxRef("FeaturePolicy")}} interface returns a list of directive names of all features allowed by the [Permissions Policy](/en-US/docs/Web/HTTP/Permissions_Policy). This enables introspection of individual directives of the Permissions Policy it is run on. As such, `allowedFeatures()` method -returns a subset of directives returned by {{DOMxRef("FeaturePolicy.features", - "features()")}}. +returns a subset of directives returned by {{DOMxRef("FeaturePolicy.features", "features()")}}. ## Syntax diff --git a/files/en-us/web/api/fetchevent/respondwith/index.md b/files/en-us/web/api/fetchevent/respondwith/index.md index 18f869a43ff62e4..b69fe7b6244bb35 100644 --- a/files/en-us/web/api/fetchevent/respondwith/index.md +++ b/files/en-us/web/api/fetchevent/respondwith/index.md @@ -16,15 +16,15 @@ In most cases you can provide any response that the receiver understands. For ex if an {{HTMLElement('img')}} initiates the request, the response body needs to be image data. For security reasons, there are a few global rules: -- You can only return {{domxref("Response")}} objects of {{domxref("Response.type", - "type")}} "`opaque`" if the {{domxref("fetchEvent.request")}} object's +- You can only return {{domxref("Response")}} objects of {{domxref("Response.type", "type")}} + "`opaque`" if the {{domxref("fetchEvent.request")}} object's {{domxref("request.mode", "mode")}} is "`no-cors`". This prevents the leaking of private data. -- You can only return {{domxref("Response")}} objects of {{domxref("Response.type", - "type")}} "`opaqueredirect`" if the {{domxref("fetchEvent.request")}} +- You can only return {{domxref("Response")}} objects of {{domxref("Response.type", "type")}} + "`opaqueredirect`" if the {{domxref("fetchEvent.request")}} object's {{domxref("request.mode", "mode")}} is "`manual`". -- You cannot return {{domxref("Response")}} objects of {{domxref("Response.type", - "type")}} "`cors`" if the {{domxref("fetchEvent.request")}} object's +- You cannot return {{domxref("Response")}} objects of {{domxref("Response.type", "type")}} + "`cors`" if the {{domxref("fetchEvent.request")}} object's {{domxref("request.mode", "mode")}} is "`same-origin`". ### Specifying the final URL of a resource diff --git a/files/en-us/web/api/filereader/result/index.md b/files/en-us/web/api/filereader/result/index.md index 7ed579fb6593a66..a1f501c11cfe5f9 100644 --- a/files/en-us/web/api/filereader/result/index.md +++ b/files/en-us/web/api/filereader/result/index.md @@ -35,8 +35,7 @@ The result types are described below. diff --git a/files/en-us/web/api/filesystemdirectoryentry/createreader/index.md b/files/en-us/web/api/filesystemdirectoryentry/createreader/index.md index f76664e2e8760c1..151ed7fd2c836f2 100644 --- a/files/en-us/web/api/filesystemdirectoryentry/createreader/index.md +++ b/files/en-us/web/api/filesystemdirectoryentry/createreader/index.md @@ -60,8 +60,8 @@ function readDirectory(directory) { This works by creating an internal function, `getEntries()`, which calls itself recursively to get all the entries in the directory, concatenating each batch to -the array. Each iteration, {{domxref("FileSystemDirectoryReader.readEntries", - "readEntries()")}} is called to get more entries. When it returns an empty array, the +the array. Each iteration, {{domxref("FileSystemDirectoryReader.readEntries", "readEntries()")}} +is called to get more entries. When it returns an empty array, the end of the directory has been reached, and the recursion ends. Once control is returned to `readDirectory()`, the array is returned to the caller. diff --git a/files/en-us/web/api/filesystementry/name/index.md b/files/en-us/web/api/filesystementry/name/index.md index 76ed99654436a28..0fe231804bffafe 100644 --- a/files/en-us/web/api/filesystementry/name/index.md +++ b/files/en-us/web/api/filesystementry/name/index.md @@ -11,8 +11,7 @@ browser-compat: api.FileSystemEntry.name The read-only **`name`** property of the {{domxref("FileSystemEntry")}} interface returns a string specifying the entry's name; this is the entry within its parent directory (the last -component of the path as indicated by the {{domxref("FileSystemEntry.fullPath", - "fullPath")}} property). +component of the path as indicated by the {{domxref("FileSystemEntry.fullPath", "fullPath")}} property). ## Value diff --git a/files/en-us/web/api/filesystemhandle/issameentry/index.md b/files/en-us/web/api/filesystemhandle/issameentry/index.md index dee57c93df93781..4bba252615bee7d 100644 --- a/files/en-us/web/api/filesystemhandle/issameentry/index.md +++ b/files/en-us/web/api/filesystemhandle/issameentry/index.md @@ -9,8 +9,7 @@ browser-compat: api.FileSystemHandle.isSameEntry {{securecontext_header}}{{APIRef("File System API")}} The **`isSameEntry()`** method of the -{{domxref("FileSystemHandle")}} interface compares two {{domxref("FileSystemHandle", - "handles")}} to see if the associated entries (either a file or directory) match. +{{domxref("FileSystemHandle")}} interface compares two {{domxref("FileSystemHandle", "handles")}} to see if the associated entries (either a file or directory) match. ## Syntax diff --git a/files/en-us/web/api/focusevent/focusevent/index.md b/files/en-us/web/api/focusevent/focusevent/index.md index 3790fc9a1f720ec..01493e46abfdec2 100644 --- a/files/en-us/web/api/focusevent/focusevent/index.md +++ b/files/en-us/web/api/focusevent/focusevent/index.md @@ -23,8 +23,7 @@ new FocusEvent(type, options) ### Parameters _The `FocusEvent()` constructor also inherits arguments from -{{domxref("UIEvent.UIEvent", "UIEvent()")}} and from {{domxref("Event.Event", - "Event()")}}._ +{{domxref("UIEvent.UIEvent", "UIEvent()")}} and from {{domxref("Event.Event", "Event()")}}._ - `type` - : A string with the name of the event. diff --git a/files/en-us/web/api/gamepad/buttons/index.md b/files/en-us/web/api/gamepad/buttons/index.md index 4b1e2faad8e4070..a30c6031d9c1841 100644 --- a/files/en-us/web/api/gamepad/buttons/index.md +++ b/files/en-us/web/api/gamepad/buttons/index.md @@ -8,8 +8,7 @@ browser-compat: api.Gamepad.buttons {{APIRef("Gamepad API")}}{{SecureContext_Header}} -The **`Gamepad.buttons`** property of the {{domxref("Gamepad") - }} interface returns an array of {{domxref("gamepadButton")}} objects representing the +The **`Gamepad.buttons`** property of the {{domxref("Gamepad")}} interface returns an array of {{domxref("gamepadButton")}} objects representing the buttons present on the device. Each entry in the array is 0 if the button is not pressed, and non-zero (typically 1.0) diff --git a/files/en-us/web/api/history/go/index.md b/files/en-us/web/api/history/go/index.md index f804f359b16cc76..17ea25102f01708 100644 --- a/files/en-us/web/api/history/go/index.md +++ b/files/en-us/web/api/history/go/index.md @@ -42,8 +42,7 @@ None ({{jsxref("undefined")}}). ## Examples -To move back one page (the equivalent of calling {{domxref("History.back", - "back()")}}): +To move back one page (the equivalent of calling {{domxref("History.back", "back()")}}): ```js history.go(-1); diff --git a/files/en-us/web/api/htmlaudioelement/audio/index.md b/files/en-us/web/api/htmlaudioelement/audio/index.md index 5845549e7b3c2ac..8acb21cccb14da4 100644 --- a/files/en-us/web/api/htmlaudioelement/audio/index.md +++ b/files/en-us/web/api/htmlaudioelement/audio/index.md @@ -55,8 +55,8 @@ playback to begin: - Listen for the {{domxref("HTMLMediaElement.canplay_event", "canplay")}} event. It is sent to the `
The result is a JavaScript - {{jsxref("Global_Objects/ArrayBuffer", - "ArrayBuffer")}} + {{jsxref("Global_Objects/ArrayBuffer", "ArrayBuffer")}} containing binary data.