Re: [whatwg/dom] connectedCallback + parser gotcha (#611)

We shouldn't modify the definition of connectedCallback because people are using it for the wrong purpose. (For the right purpose: see the various uses of "becomes connected" in the HTML Standard.)

The general problem here is people assuming there is ever any static time at which your list of children is "complete" or canonical. That is never true. Children can change dynamically. If you want to make decisions based on your children, you need to use a MutationObserver to observe them.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/611#issuecomment-373998853

Received on Sunday, 18 March 2018 13:24:47 UTC