Skip to content

Hyphenate read-only when used as a modifier - #45410

Open
husamemadH wants to merge 1 commit into
mdn:mainfrom
husamemadH:fix-read-only-hyphen
Open

Hyphenate read-only when used as a modifier#45410
husamemadH wants to merge 1 commit into
mdn:mainfrom
husamemadH:fix-read-only-hyphen

Conversation

@husamemadH

Copy link
Copy Markdown
Contributor

Description

Hyphenates "read-only" in the 26 places where it modifies a following noun.

Motivation

Used before a noun, "read-only" is a compound modifier and takes a hyphen. The repository already writes it that way about 2780 times, against 75 unhyphenated, so these are outliers rather than a house style.

Sixteen of them are the opening sentence of a USBDevice property page — "The deviceVersionMajor read only property of the …" — where every comparable page in Web/API uses "read-only property". The rest are scattered: DeviceMotionEvent.rotationRate ("is a read only object"), KeyboardEvent.key, Notification.permission, Performance.measure() ("a read only attribute"), the SVG API index ("provide read only access"), and the navigation and resource timings guide.

Occurrences inside code are deliberately untouched. In particular TypeError: Cannot assign to read only property 'x' is V8's own message text and appears verbatim on the read-only error page, Array.prototype.length and super.

@husamemadH
husamemadH requested review from a team as code owners August 31, 2026 07:35
@husamemadH
husamemadH requested review from dipikabh and sideshowbarker and removed request for a team August 31, 2026 07:35
@github-actions github-actions Bot added Content:WebAPI Web API docs Content:Performance Web performance docs Content:Firefox Content in the Mozilla/Firefox subtree size/m [PR only] 51-500 LoC changed labels Aug 31, 2026
@github-actions

Copy link
Copy Markdown
Contributor
Preview URLs (24 pages)

Flaws (2)

Note! 23 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/API/SVG_API
Title: SVG API
Flaw count: 2

  • macros:
    • Macro domxref produces link /en-US/docs/Web/API/ShadowAnimation which doesn't resolve
    • Macro domxref produces link /en-US/docs/Web/API/SVGUseElementShadowRoot which doesn't resolve
External URLs (1)

URL: /en-US/docs/Mozilla/Firefox/Releases/126
Title: Firefox 126 release notes for developers

@sideshowbarker
sideshowbarker removed request for a team and sideshowbarker August 31, 2026 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:Firefox Content in the Mozilla/Firefox subtree Content:Performance Web performance docs Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed

2 participants