Skip to content

Fix #43525: Improve clarity of dispatchEvent() return value#43545

Open
roshanigugale06 wants to merge 1 commit intomdn:mainfrom
roshanigugale06:fix-43525
Open

Fix #43525: Improve clarity of dispatchEvent() return value#43545
roshanigugale06 wants to merge 1 commit intomdn:mainfrom
roshanigugale06:fix-43525

Conversation

@roshanigugale06
Copy link
Copy Markdown

This PR fixes a misleading sentence in the dispatchEvent() documentation.

Changes made:

  • Converted the return value description into a clear and complete sentence
  • Improved readability for beginners

Result:

The behavior of dispatchEvent() return value is now easier to understand.

Closes #43525

Proof of change: ISSUE (false if event is cancelable, and at least one of the event handlers which received event called Event.preventDefault(). Otherwise true.)

(Screenshot attach here)

Screenshot from 2026-03-24 14-31-16 Screenshot from 2026-03-24 14-32-20

@roshanigugale06 roshanigugale06 requested a review from a team as a code owner March 24, 2026 09:06
@roshanigugale06 roshanigugale06 requested review from chrisdavidmills and removed request for a team March 24, 2026 09:06
@github-actions github-actions bot added Content:WebAPI Web API docs size/xs [PR only] 0-5 LoC changed labels Mar 24, 2026
@chrisdavidmills
Copy link
Copy Markdown
Contributor

Hi @roshanigugale06! Can you clarify which issue this PR is supposed to fix? #43525 seems like the wrong issue.

@github-actions
Copy link
Copy Markdown
Contributor

Preview URLs (1 page)

@roshanigugale06
Copy link
Copy Markdown
Author

Hi @roshanigugale06! Can you clarify which issue this PR is supposed to fix? #43525 seems like the wrong issue.

Hi! Thanks for pointing that out.

This PR is intended to fix issue #43525 (misleading sentence in dispatchEvent() documentation). I mistakenly referenced the wrong issue number earlier.

I have updated the return value description to improve clarity. Please let me know if any further changes are needed.

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/xs [PR only] 0-5 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug in "Matrix math for the web" - manual rotation example discards original point angle

3 participants