Skip to content

Fix internal links to pages that do not exist - #44935

Open
husamemadH wants to merge 1 commit into
mdn:mainfrom
husamemadH:fix-broken-internal-links-2
Open

Fix internal links to pages that do not exist#44935
husamemadH wants to merge 1 commit into
mdn:mainfrom
husamemadH:fix-broken-internal-links-2

Conversation

@husamemadH

Copy link
Copy Markdown
Contributor

Description

Fixes 14 internal links across 9 pages that currently return a 404.

Motivation

Each broken link and its replacement, verified against the live site:

MathML global attributes (Web/MathML/Reference/Global_attributes, 6 links, plus 1 on MathMLElement.tabIndex)

autofocus, class, id, nonce, style and tabindex are HTML global attributes that MathML elements inherit; MDN has no MathML-specific page for any of them, so all six links 404. They now point at the HTML global attribute pages, which all return 200. This matches what neighboring pages already do — MathMLElement.nonce and the MathML dir page both link to /Web/HTML/Reference/Global_attributes/…. The MathML-specific attributes on the same list (data-*, dir, displaystyle, mathbackground, mathcolor, mathsize, scriptlevel, href) do have pages and are left untouched.

PreferenceObject.clearOverride() — linked to /Web/API/PreferenceObject/colorScheme (404). The property is on PreferenceManager, and /Web/API/PreferenceManager/colorScheme returns 200.

WebXR (4 pages) — the "See also" entry for gamepads pointed at /Web/API/WebXR_Device_API/Gamepads, which does not exist and has no redirect. Retargeted to the section that covers this material, Advanced controllers using the gamepad object.

WebDriver Get Window Rect — the link to the Set Window Rect command used the pre-reorganization path /Web/WebDriver/Reference/SetWindowRect. The page is now at /Web/WebDriver/Reference/Classic/Commands/SetWindowRect.

XSLT <xsl:stylesheet><xsl:for-each-group> linked to /Web/XSLT/Element/for-each-group, a path from before XSLT moved under /Web/XML/. There is no for-each-group page under the new path either, so the link is dropped and the element name kept as inline code; the adjacent <xsl:key> link in the same sentence already uses the current path.

- MathML global attributes autofocus, class, id, nonce, style and tabindex
  have no MathML-specific page; point them at the HTML global attribute
  pages, as MathMLElement.nonce and the MathML dir page already do.
- PreferenceObject.clearOverride(): colorScheme lives on PreferenceManager.
- WebXR (4 pages): /WebXR_Device_API/Gamepads does not exist; point at the
  gamepad section of Inputs and input sources.
- WebDriver Get Window Rect: Set Window Rect moved under Classic/Commands/.
- XSLT <xsl:stylesheet>: for-each-group has no page under the current
  /Web/XML/XSLT/ path, so drop the link and keep the element as code.
@husamemadH
husamemadH requested review from a team as code owners July 27, 2026 16:25
@husamemadH
husamemadH requested review from fred-wang and sideshowbarker and removed request for a team July 27, 2026 16:25
@github-actions github-actions Bot added Content:WebAPI Web API docs Content:Other Any docs not covered by another "Content:" label Content:MathML MathML docs Content:WebDriver WebDriver docs size/s [PR only] 6-50 LoC changed labels Jul 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor
Preview URLs (9 pages)
Flaws (6)

Note! 8 documents with no flaws that don't need to be listed. 🎉

Found an unexpected or unresolvable flaw? Please report it here.

URL: /en-US/docs/Web/WebDriver/Reference/Classic/Commands/GetWindowRect
Title: Get Window Rect
Flaw count: 6

  • broken_links:
    • Link /en-US/docs/Web/WebDriver/Reference/WebElement doesn't resolve
    • Link /en-US/docs/Web/WebDriver/Reference/Clients doesn't resolve
    • Link /en-US/docs/Web/WebDriver/Reference/WindowRect doesn't resolve
    • Link /en-US/docs/Web/WebDriver/Reference/WebWindow doesn't resolve
    • Link /en-US/docs/Web/WebDriver/Reference/Errors/UnexpectedAlertOpen doesn't resolve
    • and 1 more flaws omitted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:MathML MathML docs Content:Other Any docs not covered by another "Content:" label Content:WebAPI Web API docs Content:WebDriver WebDriver docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants