Skip to content

Fix error message for illegal HTML element constructors (#41107)#43882

Merged
jdm merged 1 commit into
servo:mainfrom
treetmitterglad:fix-illegal-constructor-error-msg
Apr 3, 2026
Merged

Fix error message for illegal HTML element constructors (#41107)#43882
jdm merged 1 commit into
servo:mainfrom
treetmitterglad:fix-illegal-constructor-error-msg

Conversation

@treetmitterglad

Copy link
Copy Markdown
Contributor

Changes the error message for illegal HTML element constructors like new HTMLElement() from new.target must not be the active function object to Illegal constructor., matching Chrome, Firefox, and the HTML spec.

Ran ./mach test-wpt tests/wpt/tests/custom-elements. 180 tests passed as expected, 1 pre-existing unrelated crash in HTMLMediaElement.

#41107

Signed-off-by: Eli Bowman <asdfup@protonmail.com>
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Apr 2, 2026
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Apr 3, 2026
@jdm

jdm commented Apr 3, 2026

Copy link
Copy Markdown
Member

Thanks!

@jdm jdm added this pull request to the merge queue Apr 3, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Apr 3, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 3, 2026
@servo-highfive servo-highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Apr 3, 2026
@jdm jdm added this pull request to the merge queue Apr 3, 2026
@servo-highfive servo-highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Apr 3, 2026
Merged via the queue into servo:main with commit 0054b71 Apr 3, 2026
39 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Apr 3, 2026
@treetmitterglad treetmitterglad deleted the fix-illegal-constructor-error-msg branch April 3, 2026 13:18
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.

3 participants