Skip to content

Commit

Permalink
Fix broken links (mdn#35043)
Browse files Browse the repository at this point in the history
* Fix broken links

* More

* Fix another

* Fix more

* Fix two

* Fix src

* Fix another

* Fix another

* Fix another

* Fix one more

* One more bro

* Fix another

* More

* Moar
  • Loading branch information
Josh-Cena authored Jul 25, 2024
1 parent b71d118 commit 6197320
Show file tree
Hide file tree
Showing 21 changed files with 26 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ A live region includes the element and all its descendants. When not set on upda

- {{domxref("Element.ariaLive")}}
- : The [`ariaLive`](/en-US/docs/Web/API/Element/ariaLive) property, part of the {{domxref("Element")}} interface, reflects the value of the `aria-live` attribute.
- {{domxref("ElementInternals.aria-live")}}
- {{domxref("ElementInternals.ariaLive")}}
- : The [`ariaLive`](/en-US/docs/Web/API/ElementInternals/ariaLive) property, part of the {{domxref("ElementInternals")}} interface, reflects the value of the `aria-live` attribute.

## Associated roles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ Inherited into roles:
- [`range` role](/en-US/docs/Web/Accessibility/ARIA/Roles/range_role)
- [`<input type="range>` element `min` attribute](/en-US/docs/Web/HTML/Element/input/range#min)
- [`aria-valuemax`](/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-valuemax)
- [`aria-aria-valuenow`](/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-aria-valuenow).
- [`aria-valuenow`](/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-valuenow)
2 changes: 1 addition & 1 deletion files/en-us/web/api/dommatrix/dommatrix/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ new DOMMatrix(init)
## Examples

This example creates a DOMMatrix to use as an argument for calling
{{domxref("Point.matrixTransform()")}}.
{{domxref("DOMPointReadOnly.matrixTransform()")}}.

```js
const point = new DOMPoint(5, 4);
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/dommatrix/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ _This interface inherits properties from {{domxref("DOMMatrixReadOnly")}}, thoug
_This interface includes the following methods, as well as the methods it inherits from {{domxref("DOMMatrixReadOnly")}}._

- {{domxref("DOMMatrix.invertSelf()")}}
- : Modifies the matrix by inverting it. If the matrix can't be inverted, its components are all set to `NaN`, and {{domxref("DOMMatrix.is2D", "is2D")}} returns `false`.
- : Modifies the matrix by inverting it. If the matrix can't be inverted, its components are all set to `NaN`, and [`is2D`](/en-US/docs/Web/API/DOMMatrixReadOnly#is2d) returns `false`.
- {{domxref("DOMMatrix.multiplySelf()")}}
- : Modifies the matrix by post-multiplying it with the specified `DOMMatrix`. This is equivalent to the dot product `A⋅B`, where matrix `A` is the source matrix and `B` is the matrix given as an input to the method. Returns itself.
- {{domxref("DOMMatrix.preMultiplySelf()")}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/dompoint/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ _`DOMPoint` may also inherit static methods from its parent, {{domxref("DOMPoint

## Examples

In the [WebXR Device API](/en-US/docs/Web/API/WebXR_Device_API), `DOMPointReadOnly` values represent positions and orientations. In the following snippet, the pose of the XR device (such as a VR headset or phone with AR capabilities) can be retrieved by calling using {{domxref("XRFrame.getViewerPose()")}} during an {{domxref("XRSession")}} animation frame, then accessing the resulting {{domxref("XRPose")}}'s {{domxref("XRPose.transform","transform")}} property, which contains two `DOMPointReadOnly` attributes: {{domxref("XRRigidTransform.position","position")}} as a vector and {{domxref("XRRigidTransform.orientation.orientation","orientation")}} as a quaternion.
In the [WebXR Device API](/en-US/docs/Web/API/WebXR_Device_API), `DOMPointReadOnly` values represent positions and orientations. In the following snippet, the pose of the XR device (such as a VR headset or phone with AR capabilities) can be retrieved by calling using {{domxref("XRFrame.getViewerPose()")}} during an {{domxref("XRSession")}} animation frame, then accessing the resulting {{domxref("XRPose")}}'s {{domxref("XRPose.transform","transform")}} property, which contains two `DOMPointReadOnly` attributes: {{domxref("XRRigidTransform.position","position")}} as a vector and {{domxref("XRRigidTransform.orientation","orientation")}} as a quaternion.

```js
function onXRFrame(time, xrFrame) {
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/ext_disjoint_timer_query/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ WebGL extensions are available using the {{domxref("WebGLRenderingContext.getExt

> **Note:** This extension should be available in {{domxref("WebGLRenderingContext", "WebGL1", "", 1)}} contexts only. {{domxref("EXT_disjoint_timer_query_webgl2")}} is available in {{domxref("WebGL2RenderingContext", "WebGL 2", "", 1)}} contexts .
>
> In WebGL 2, the {{domxref("getQueryObject")}} was renamed to {{domxref("getQueryParameter")}}.
> In WebGL 2, the {{domxref("WebGLRenderingContext.getQueryObject")}} was renamed to {{domxref("WebGL2RenderingContext.getQueryParameter")}}.
> In WebGL 2, other queries (such as occlusion queries and primitive queries) are possible using {{domxref("WebGLQuery")}} objects.
## Types
Expand Down
8 changes: 5 additions & 3 deletions files/en-us/web/api/htmliframeelement/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ body.appendChild(iframe); // Fetch the image using the complete URL as the refer

## See also

- {{DOMxRef("HTMLAnchorElement.src")}}
- {{DOMxRef("HTMLAreaElement.src")}}
- {{DOMxRef("HTMLAreaElement.src")}}.
- {{DOMxRef("HTMLEmbedElement.src")}}
- {{DOMxRef("HTMLImageElement.src")}}
- {{DOMxRef("HTMLMediaElement.src")}}
- {{DOMxRef("HTMLScriptElement.src")}}
- {{DOMxRef("HTMLTrackElement.src")}}
2 changes: 0 additions & 2 deletions files/en-us/web/api/htmlmediaelement/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,6 @@ Listen to these events using {{domxref("EventTarget.addEventListener", "addEvent
- : Fired periodically as the browser loads a resource.
- {{domxref("HTMLMediaElement.ratechange_event", 'ratechange')}}
- : Fired when the playback rate has changed.
- {{domxref("HTMLMediaElement.resize_event", 'resize ')}}
- : Fired when one or both of the `videoWidth` and `videoHeight` properties have just been updated.
- {{domxref("HTMLMediaElement.seeked_event", 'seeked')}}
- : Fired when a seek operation completes.
- {{domxref("HTMLMediaElement.seeking_event", 'seeking')}}
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/htmlvideoelement/videoheight/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ A {{Glossary("user agent")}} calculates the intrinsic width and height of the el

If the element is currently displaying the poster frame rather than rendered video, the poster frame's intrinsic size is considered to be the size of the `<video>` element.

If at any time the intrinsic size of the media changes and the element's {{domxref("HTMLMediaElement.readyState", "readyState")}} isn't `HAVE_NOTHING`, a {{domxref("HTMLMediaElement.resize", "resize")}} event will be sent to the `<video>` element.
If at any time the intrinsic size of the media changes and the element's {{domxref("HTMLMediaElement.readyState", "readyState")}} isn't `HAVE_NOTHING`, a {{domxref("HTMLVideoElement.resize_event", "resize")}} event will be sent to the `<video>` element.
This can happen when the element switches from displaying the poster frame to displaying video content, or when the displayed video track changes.

## Examples

This example creates a handler for the {{domxref("HTMLVideoElement.resize", "resize")}} event that resizes the {{HTMLElement("video")}} element to match the intrinsic size of its contents.
This example creates a handler for the {{domxref("HTMLVideoElement.resize_event", "resize")}} event that resizes the {{HTMLElement("video")}} element to match the intrinsic size of its contents.

```js
let v = document.getElementById("myVideo");
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/idbtransaction/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ objectStore1.put("1", "key");

After the code is executed the object store should contain the value "2", since `trans2` should run after `trans1`.

A transaction alternates between _active_ and _inactive_ states between event loop tasks. It's active in the task when it was created, and in each task of the requests' [`success`](/en-US/docs/Web/API/IDBRequest/success) or [`error`](/en-US/docs/Web/API/IDBRequest/error) event handlers. It's inactive in all other tasks, in which case placing requests will fail. If no new requests are placed when the transaction is active, and there are no other outstanding requests, the transaction will automatically commit.
A transaction alternates between _active_ and _inactive_ states between event loop tasks. It's active in the task when it was created, and in each task of the requests' [`success`](/en-US/docs/Web/API/IDBRequest/success_event) or [`error`](/en-US/docs/Web/API/IDBRequest/error_event) event handlers. It's inactive in all other tasks, in which case placing requests will fail. If no new requests are placed when the transaction is active, and there are no other outstanding requests, the transaction will automatically commit.

## Transaction failures

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/svgrect/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ An **`SVGRect`** object can be designated as read only, which means that attempt
- : The exact effect of this coordinate depends on each element. If the attribute is not specified, the effect is as if a value of `0` were specified.
- {{domxref("SVGRect.width")}}
- : This represents the width of the rectangle. A value that is negative results to an error. A value of `0` disables rendering of the element
- {{SVGAttr("SVGRect.height")}}
- {{domxref("SVGRect.height")}}
- : This represents the height of the rectangle. A value that is negative results to an error. A value of `0` disables rendering of the element.

## Instance methods
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Display max layers: ${cap.maxLayers}`;
}
```

This function first uses the promise-based {{domxref("Navigator.getVRDisplays()")}} method, which resolves with an array containing {{domxref("VRDisplay")}} objects representing the connected displays. Next, it prints out each display's {{domxref("VRDisplay.displayId")}} and {{domxref("VRDisplay.displayName")}} values, and a number of useful values contained in the display's associated {{domxref("VRCapabilities")}} object. The most useful of these are {{domxref("VRCapabilities.hasOrientation","hasOrientation")}} and {{domxref("VRCapabilities.hasPosition","hasPosition")}}, which allow you to detect whether the device can return orientation and position data and set up your app accordingly.
This function first uses the promise-based {{domxref("Navigator.getVRDisplays()")}} method, which resolves with an array containing {{domxref("VRDisplay")}} objects representing the connected displays. Next, it prints out each display's {{domxref("VRDisplay.displayId")}} and {{domxref("VRDisplay.displayName")}} values, and a number of useful values contained in the display's associated {{domxref("VRDisplayCapabilities")}} object. The most useful of these are {{domxref("VRDisplayCapabilities.hasOrientation","hasOrientation")}} and {{domxref("VRDisplayCapabilities.hasPosition","hasPosition")}}, which allow you to detect whether the device can return orientation and position data and set up your app accordingly.

The last line contained in this function is a {{domxref("setTimeout()")}} call, which runs the `reportGamepads()` function after a 1 second delay. Why do we need to do this? First of all, VR controllers will only be ready after their associated VR headset is active, so we need to invoke this after `getVRDisplays()` has been called and returned the display information. Second, the Gamepad API is much older than the WebVR API, and not promise-based. As you'll see later, the `getGamepads()` method is synchronous, and just returns the `Gamepad` objects immediately — it doesn't wait for the controller to be ready to report information. Unless you wait for a little while, returned information may not be accurate (at least, this is what we found in our tests).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The core of this example—the spinning, textured, lighted cube—is taken from

While reading this article and the accompanying source code, it's helpful to keep in mind that the display for a 3D headset is a single screen, divided in half. The left half of the screen is seen only by the left eye, while the right half is only seen by the right eye. Rendering the scene for immersive presentation requires multiple renders of the scene—once from the perspective of each eye.

When rendering the left eye, the {{domxref("XRWebGLLayer")}} has its {{domxref("XRWebGLLayer.viewport", "viewport")}} configured to restrict drawing to the left half of the drawing surface. Contrarily, when rendering the right eye, the viewport is set to restrict drawing to the right half of the surface.
When rendering the left eye, the {{domxref("XRWebGLLayer")}} has its [viewport](/en-US/docs/Web/API/XRWebGLLayer/getViewport) configured to restrict drawing to the left half of the drawing surface. Contrarily, when rendering the right eye, the viewport is set to restrict drawing to the right half of the surface.

This example demonstrates this by showing the canvas on the screen, even when presenting a scene as an immersive display using an XR device.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/xrinputsource/handedness/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ If `gripSpace` is non-`null`, the function proceeds to get the pose for the `gri

- [WebXR Device API](/en-US/docs/Web/API/WebXR_Device_API)
- [Inputs and input sources](/en-US/docs/Web/API/WebXR_Device_API/Inputs)
- [Using gamepads in WebXR applications](/en-US/docs/Web/WebXR%20Device%20API/Gamepads)
- [Using gamepads in WebXR applications](/en-US/docs/Web/API/WebXR_Device_API/Gamepads)
2 changes: 1 addition & 1 deletion files/en-us/web/api/xrinputsource/targetraymode/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ See the article [Inputs and input sources](/en-US/docs/Web/API/WebXR_Device_API/

- [WebXR Device API](/en-US/docs/Web/API/WebXR_Device_API)
- [Inputs and input sources](/en-US/docs/Web/API/WebXR_Device_API/Inputs)
- [Using gamepads in WebXR applications](/en-US/docs/Web/WebXR%20Device%20API/Gamepads)
- [Using gamepads in WebXR applications](/en-US/docs/Web/API/WebXR_Device_API/Gamepads)
2 changes: 1 addition & 1 deletion files/en-us/web/api/xrinputsource/targetrayspace/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ function updateInputSources(session, frame, refSpace) {

- [WebXR Device API](/en-US/docs/Web/API/WebXR_Device_API)
- [Inputs and input sources](/en-US/docs/Web/API/WebXR_Device_API/Inputs)
- [Using gamepads in WebXR applications](/en-US/docs/Web/WebXR%20Device%20API/Gamepads)
- [Using gamepads in WebXR applications](/en-US/docs/Web/API/WebXR_Device_API/Gamepads)
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ mouse to change the viewing angle.

First, we add an event handler for {{domxref("Element.mousemove_event", "mousemove")}}
events, which calls our code to perform the rotation if the right mouse button is down.
Note also that we set {{domxref("Element.oncontextmenu", "oncontextmenu")}} up to be
Note also that we set {{domxref("Element.contextmenu_event", "oncontextmenu")}} up to be
ignored by calling {{domxref("Event.preventDefault", "preventDefault()")}} on those
events. This prevents the right-clicks from causing the context menu from appearing in
the browser.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ The [CSS reference](/en-US/docs/Web/CSS/Reference) is an exhaustive reference fo
- [Initial](/en-US/docs/Web/CSS/initial_value), [computed](/en-US/docs/Web/CSS/computed_value), [used](/en-US/docs/Web/CSS/used_value), and [actual](/en-US/docs/Web/CSS/actual_value) values
- [CSS shorthand properties](/en-US/docs/Web/CSS/Shorthand_properties)
- [CSS flexible box](/en-US/docs/Web/CSS/CSS_flexible_box_layout), [multi-column](/en-US/docs/Web/CSS/CSS_multicol_layout) and [grid](/en-US/docs/Web/CSS/CSS_grid_layout) layout
- [Animation](/en-US/docs/Web/CSS/CSS_animation), [transitions](/en-US/docs/Web/CSS/CSS_transitions), and [transforms](/en-US/docs/Web/CSS/CSS_transforms)
- [Animation](/en-US/docs/Web/CSS/CSS_animations), [transitions](/en-US/docs/Web/CSS/CSS_transitions), and [transforms](/en-US/docs/Web/CSS/CSS_transforms)

## Cookbook

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/css/mozilla_extensions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,8 @@ Properties: {{CSSxRef("width")}}, {{CSSxRef("min-width")}}, and {{CSSxRef("max-w
- {{CSSxRef("::-moz-list-bullet")}}
- {{CSSxRef("::-moz-list-number")}}
- {{CSSxRef(":-moz-loading")}}
- {{CSSxRef(":dir_ltr", ":-moz-locale-dir(ltr)")}}
- {{CSSxRef(":dir_rtl", ":-moz-locale-dir(rtl)")}}
- {{CSSxRef(":-moz-locale-dir_ltr", ":-moz-locale-dir(ltr)")}}
- {{CSSxRef(":-moz-locale-dir_rtl", ":-moz-locale-dir(rtl)")}}
- {{CSSxRef(":-moz-lwtheme")}}
- {{CSSxRef(":-moz-lwtheme-brighttext")}}
- {{CSSxRef(":-moz-lwtheme-darktext")}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/css/position-anchor/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ position-anchor: unset;

This property is only relevant to "positioned" elements — elements and pseudo elements that have a {{cssxref("position")}} of `absolute` or `fixed` set.

To position an element relative to an anchor element, the positioned element requires three features: an association, a position, and a location. The `position-anchor` and {{htmlelement("anchor-name")}} properties provide the association.
To position an element relative to an anchor element, the positioned element requires three features: an association, a position, and a location. The `position-anchor` and {{cssxref("anchor-name")}} properties provide the association.

The anchor element accepts one or more `<dashed-ident>` anchor names set on it via the `anchor-name` property. When one of those names is then set as the value of the positioned element's `position-anchor` property, the two elements are associated.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/html/global_attributes/inert/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Specifically, `inert` does the following:
- Prevents the {{domxref("Element/click_event", "click")}} event from being fired when the user clicks on the element.
- Prevents the {{domxref("Element/focus_event", "focus")}} event from being raised by preventing the element from gaining focus.
- Prevents any contents of the element from being found/matched during any use of the browser's find-in-page feature.
- Prevents users from selecting text within the element — akin to using the CSS property {{domxref("CSS/user-select", "user-select")}} to disable text selection.
- Prevents users from selecting text within the element — akin to using the CSS property {{cssxref("user-select")}} to disable text selection.
- Prevents users from editing any contents of the element that are otherwise editable.
- Hides the element and its content from assistive technologies by excluding them from the accessibility tree.

Expand Down

0 comments on commit 6197320

Please sign in to comment.