WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
299603
elements created via parsing can customize with a null registry
https://bugs.webkit.org/show_bug.cgi?id=299603
Summary
elements created via parsing can customize with a null registry
Steve Orvell
Reported
2025-09-26 06:52:27 PDT
When setting `innerHTML` or using `insertAdjacentHTML` on an element or shadowRoot with a customElementRegistry set to null, any custom element candidates in the parsed HTML should not customize based on step 7 of "parsing HTML fragments" (
https://html.spec.whatwg.org/#parsing-html-fragments
). However, they can customize in some cases which results in a customized custom element with a null customElementRegistry. See reproduction:
https://codepen.io/Steve-Orvell/pen/RNrroxV?editors=1000
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2025-10-03 06:53:19 PDT
<
rdar://problem/161893045
>
Radar WebKit Bug Importer
Comment 2
2025-10-03 06:53:22 PDT
<
rdar://problem/161893031
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug