Skip to content

Fix unbalanced and misplaced parentheses in Web API docs - #46013

Merged
Josh-Cena merged 1 commit into
mdn:mainfrom
kumability:fix-typos-web-api-parens
Oct 7, 2026
Merged

Josh-Cena merged 1 commit into
mdn:mainfrom
kumability:fix-typos-web-api-parens

Conversation

@kumability

Copy link
Copy Markdown
Contributor

Description

Fixes 25 unbalanced or misplaced parentheses across 23 Web API pages: a missing ( or ), an extra one, or a ) that ended up inside inline code (e.g. (`currentRotation)` → (`currentRotation`)).

All changes
Page Reason
AudioBufferSourceNode/start stray opening paren before the macro, never closed
Document/getSelection extra closing paren
Element/ariaHidden extra closing paren after link
File_API/Using_files_from_web_applications extra closing paren
IDBTransaction missing closing paren
MediaRecorder parenthetical never closed
MediaStream/active '(that is, when ...' never closes
MediaStreamTrackAudioSourceNode/MediaStreamTrackAudioSourceNode '(that is, its kind property ...' never closes
PaintWorkletGlobalScope/registerPaint '(documented here on the parent class ...' never closes
PaymentResponse/retry missing closing paren
PerformanceMeasure/detail missing closing paren
Pointer_events unclosed '(when ... occurs'; the clause is the main point of the sentence, so drop the paren instead of closing it
ReadableStreamBYOBReader extra closing paren after link
Touch_events/Multi-touch_interaction extra closing paren
TrackEvent stray closing paren
Web_Audio_API/Controlling_multiple_parameters_with_ConstantSourceNode parenthetical never closed
Web_Audio_API/Controlling_multiple_parameters_with_ConstantSourceNode parenthetical never closed
Web_Audio_API/Simple_synth '(by calling our old friend addEventListener()' never closed
WebGL_API/Basic_2D_animation_example missing closing paren
WebGL_API/Basic_2D_animation_example closing paren inside inline code
WebGL_API/WebGL_best_practices extra closing paren
WebVR_API/Using_the_WebVR_API one open, two close
WebXR_Device_API/Bounded_reference_spaces extra closing paren
WebXR_Device_API/Targeting extra closing paren
XRView parenthetical '(such as ... mode' never closed

Motivation

These make sentences harder to read, especially when it's unclear where an aside ends.

Additional details

For each one, I read the whole sentence to decide whether a paren was missing or extra, and checked the git history where the intent wasn't obvious. In Pointer events, the unclosed (when a pointercancel event occurs is the main point of the sentence rather than an aside, so I removed the ( instead of closing it.

No open PR touches these files.

Related issues and pull requests

Same kind of fixes as #45998 (CSS) and #46012 (Learn).

@kumability
kumability requested a review from a team as a code owner October 7, 2026 09:30
@kumability
kumability requested review from sideshowbarker and removed request for a team October 7, 2026 09:30
@github-actions github-actions Bot added Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed labels Oct 7, 2026

@Josh-Cena Josh-Cena left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you

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

Labels

Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants