- From: Sasha Firsov <notifications@github.com>
- Date: Sun, 16 Apr 2023 00:12:01 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Sunday, 16 April 2023 07:12:07 UTC
DCE does not have to use JS and IMO the "pure" DCE would be JS-less. The class would be created by the browser and use the native templating for content rendering. The element life cycle events and callbacks can be assigned either as inline `onxxx` or associated by embedded SCRIPT sections, something like `<script type="element/connectedCallback" >...` or `<script type="module" >document.currentScript.getRootNode()....` But it would require to add `currentScript` to ES6 module JS API. As of now it is only in ES5 and there is a struggle to get it approved even for inline scripts. The `<script type="module">` is optional in this case and would be needed only when there is a need to redefine the constructor. It still would face same issues in acceptance as `currentScript` as has to be tied to insertion location. -- Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/884#issuecomment-1510135330 You are receiving this because you are subscribed to this thread. Message ID: <WICG/webcomponents/issues/884/1510135330@github.com>
Received on Sunday, 16 April 2023 07:12:07 UTC