This is indeed an ugly problem that I've faced when making Custom
Elements. The problem is: in templates, custom elements do not get
"upgraded" into their identity. They only get "upgraded" once they are
inserted into the live DOM.
The best you can do is make deferred code in
You'd have better luck in https://discourse.wicg.io than here. This is
about the ECMAScript spec and JavaScript the language, not anything related
to the web platform at large.
On Tue, Sep 24, 2019 at 09:55 Randy Buchholz wrote:
> I’m putting a custom element in a template and then “selecting”
I'm putting a custom element in a template and then "selecting" it out to
Window level. It seem to loose its identity as a custom element.
```
// In page
class MyElement extends HTMLElement {
constructor() {
super();
}
get Field() { return
3 matches
Mail list logo