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

Danny-Engelman left a comment (WICG/webcomponents#551)

FYI, that **<last-element-in-lightDOM>** _"solution"_ has been around for many moons with the esoteric notation:

```<style onload="console.log(this.parentElement)"></style>```

or even more esoteric:

```<img src="" onerror="console.log(this.parentElement)">```

or any tag that triggers an "I was parsed" notification

At least those do not fail when someone-else got "into" the page earlier and defined his/her/[pronoun] ``<parsed-element>``



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

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

Received on Thursday, 13 February 2025 15:49:06 UTC