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

> Mutation observer callbacks should in theory always happen before rendering.

I didn't know this, meaning the following pattern should grant the element has been parsed, right?

```js
constructor() {
  new MutationObserver((, mo) => {
    mo.disconnect();
    this.finishedParsingChildrenCallback();
  }).observe(this, {childList: true});
}
```

if that's the case, I might update my `html-parsed-element` library then, yet @rniwa concern on abusing MO all over will still be valid, and I wish myself there was a `finishedParsingChildrenCallback` or similar method for CE instantiation.

-- 
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-490120003

Received on Tuesday, 7 May 2019 15:07:02 UTC