Re: [w3c/webcomponents] Need a callback for when children changed or parser finished parsing children (#809)

@jakearchibald I don't understand this snippet:

```html
<my-custom-element>
  …some acceptable pre-JS markup that's eventually enhanced…
</my-custom-element>
<script>
  {
    const el = document.currentScript.previousElementSibling;
    customElements.whenDefined('my-custom-element')
      .then(() => el.enhance());
  }
</script>
```

Why wouldn't `.enhance()` be called in `my-custom-element`'s constructor?


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

Received on Wednesday, 18 September 2019 15:43:10 UTC