[WICG/webcomponents] Easily provide the template Id to HTMLElement (Issue #968)

What do you guys think about providing the `templateId` via `super` `constructor`? Example:

```js
constructor {
  super({ templateId: "..." })
}
```

`HTMLElement` could then by itself get the HTML and attach it to the shadow DOM. Or it could also be a class that extends `HTMLElement` and adds this capability, therefore keeping `HTMLElement` dumb and simple

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

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

Received on Saturday, 3 September 2022 16:02:24 UTC