fix(api): use jsxref instead of domxref for JavaScript references - #45552
Open
caugner wants to merge 4 commits into
Open
fix(api): use jsxref instead of domxref for JavaScript references#45552caugner wants to merge 4 commits into
jsxref instead of domxref for JavaScript references#45552caugner wants to merge 4 commits into
Conversation
…ay")` `Web/API/ArrayBufferView` redirects to the JavaScript `TypedArray` reference page, which the `jsxref` macro links to directly. `ArrayBufferView` is a Web IDL typedef for the JavaScript typed array types.
…y")` `Web/API/Float32Array` redirects to the JavaScript `Float32Array` reference page, which the `jsxref` macro links to directly.
`Web/API/Uint32Array` redirects to the JavaScript `Uint32Array` reference page, which the `jsxref` macro links to directly.
`Web/API/Promise` redirects to the JavaScript `Promise` reference page, which the `jsxref` macro links to directly.
Contributor
caugner
commented
Sep 7, 2026
| - Audio: | ||
| - {{domxref("AudioBuffer")}} | ||
| - {{domxref("ArrayBufferView")}} | ||
| - {{jsxref("TypedArray")}} |
Collaborator
Author
There was a problem hiding this comment.
ArrayBufferView redirects to TypedArray, this is why.
Collaborator
Author
There was a problem hiding this comment.
Maybe neither is correct? From https://webmachinelearning.github.io/prompt-api/#typedefdef-languagemodelmessagevalue it sounds like neither ArrayBufferView/TypedArray/DataView is supported.
Collaborator
Author
There was a problem hiding this comment.
In doubt, we can also revert this line.
Member
There was a problem hiding this comment.
In the worst case we can keep this as-is, but at least the spec's usage of ArrayBufferView is always translated to "DataView or TypedArray".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Use
jsxrefinstead ofdomxreffor JavaScript references in Web API pages, with one commit per replaced argument:domxrefjsxrefArrayBufferViewTypedArrayFloat32ArrayFloat32ArrayPromisePromiseUint32ArrayUint32ArrayMotivation
Ensure these references link to their JavaScript reference pages directly. The
Web/APIURLs they used either redirect there or do not exist at all.Additional details
Renamed arguments also update the rendered link text:
ArrayBufferViewbecomesTypedArray.Related issues and pull requests
Part of mdn/fred#1462.