Skip to content

Fix jsxref("function") to jsxref("Function") in timer and Promise docs#44744

Open
hanu-14 wants to merge 1 commit into
mdn:mainfrom
hanu-14:fix/jsxref-function-cap
Open

Fix jsxref("function") to jsxref("Function") in timer and Promise docs#44744
hanu-14 wants to merge 1 commit into
mdn:mainfrom
hanu-14:fix/jsxref-function-cap

Conversation

@hanu-14

@hanu-14 hanu-14 commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Description

Replace lowercase {{jsxref("function")}} with {{jsxref("Function")}} (the global Function object) in 7 callback-parameter descriptions across the Window/WorkerGlobalScope timer methods and the Promise() constructor.

Motivation

An upcoming version of the Rari build system resolves jsxref names against an index of Web/JavaScript/Reference/* pages. Lowercase unction is ambiguous between the unction operator and the unction statement, so it no longer resolves to a single page and produces a broken link.

Changes

  • Window.setInterval()
  • Window.setTimeout()
  • Window.queueMicrotask()
  • WorkerGlobalScope.setInterval()
  • WorkerGlobalScope.setTimeout()
  • WorkerGlobalScope.queueMicrotask()
  • Promise() constructor

@hanu-14
hanu-14 requested review from a team as code owners July 16, 2026 15:03
@hanu-14
hanu-14 requested review from wbamberg and removed request for a team July 16, 2026 15:04
@github-actions github-actions Bot added Content:WebAPI Web API docs Content:JS JavaScript docs size/s [PR only] 6-50 LoC changed labels Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:JS JavaScript docs Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants