Skip to content

fix(js): reject unknown createEvent interfaces - #611

Open
xrip wants to merge 1 commit into
h4ckf0r0day:mainfrom
xrip:fix/create-event-not-supported
Open

fix(js): reject unknown createEvent interfaces#611
xrip wants to merge 1 commit into
h4ckf0r0day:mainfrom
xrip:fix/create-event-not-supported

Conversation

@xrip

@xrip xrip commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • throw NotSupportedError for unknown Document.createEvent interface names instead of returning a generic Event
  • make Event, Events, HTMLEvents, and SVGEvents explicit aliases
  • map the already-exposed HashChangeEvent and MessageEvent constructors
  • keep existing type-aware event extensions and case-insensitive matching

The DOM createEvent algorithm requires an unknown name, or a listed interface that is not exposed on the current global, to throw NotSupportedError.

Fixes #610

Verification

@SGavrl SGavrl closed this Aug 14, 2026
@SGavrl SGavrl reopened this Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document.createEvent accepts unknown interface names

2 participants