Re: [WICG/webcomponents] connectedCallback timing when the document parser creates custom elements (#551)

What if we used Web Components, to fix Web Components?

```js
if(!customElements.get(`parsed-callback`)) customElements.define(`parsed-callback`, class extends HTMLElement { connectedCallback() {

    this.parentElement.parsedCallback();
    this.remove();

}});
```

```html
<custom-element>
    ...
    <parsed-callback></parsed-callback>
</custom-element>
```

### 🧠⚡☎️

-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/551#issuecomment-2655457484
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/551/2655457484@github.com>

Received on Thursday, 13 February 2025 04:36:49 UTC