Bug 299669
| Summary: | elements with a custom customElementRegistry can fail to upgrade | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Steve Orvell <steveorvell> |
| Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | rniwa, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 26 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | |||
| Bug Blocks: | 154907 | ||
Steve Orvell
If an element is created with a constructed customElementRegistry, then connected to the document, then defined in its registry, it fails to upgrade.
It remains un-upgraded even if `el.customElementRegistry.upgrade(el)` is called.
However, if the element is defined *before* being connected, it upgrades successfully.
See reproduction: https://codepen.io/Steve-Orvell/pen/GgooEqG?editors=1000
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/161964159>
Radar WebKit Bug Importer
<rdar://problem/161964115>