Skip to content

Fix typos in JavaScript docs: parentheses, then/than, work around - #46036

Merged
Josh-Cena merged 2 commits into
mdn:mainfrom
kumability:fix-typos-javascript
Oct 8, 2026
Merged

Josh-Cena merged 2 commits into
mdn:mainfrom
kumability:fix-typos-javascript

Conversation

@kumability

Copy link
Copy Markdown
Contributor

Description

Fixes 6 small typos across 5 JavaScript pages. Commits are split by kind:

  1. Parentheses (3):
  2. Wording (3):
    • eval() and Function() constructor: "much less safe then trusted-types-eval" → "much less safe than trusted-types-eval"
    • Object.hasOwn(): "to workaround these problems" → "to work around these problems" (verb), in the same sentence as the paren fix

Motivation

These typos make sentences harder to read.

Additional details

In Object.hasOwn(), the ) inside `Object.prototype.hasOwnProperty.call(obj, prop)` belongs to the code, so the aside still needed its own ).

I checked that no other open PR touches these files.

Related issues and pull requests

Same kind of fixes as #46031 and #46035.

@kumability
kumability requested a review from a team as a code owner October 8, 2026 03:35
@kumability
kumability requested review from Josh-Cena and removed request for a team October 8, 2026 03:35
@github-actions github-actions Bot added Content:JS JavaScript docs size/s [PR only] 6-50 LoC changed labels Oct 8, 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

@Josh-Cena
Josh-Cena merged commit 06f8ebf into mdn:main Oct 8, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants