- From: Jake Archibald <notifications@github.com>
- Date: Sun, 18 Mar 2018 12:43:24 +0000 (UTC)
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Sunday, 18 March 2018 12:43:50 UTC
Right now it's easy to assume that `connectedCallback` will call once the element has been fully populated, as this is how it'll work over a fast/local connection. This means failures are likely to be seen intermittently in real-world conditions. I'm not sure what the best answer is. Maybe `connectedCallback` could be called sync by the parser if the JS stack is empty. That means it'd consistently call before children have been added, regardless of timing. This makes it more likely to show up in dev. If you're setting `innerHTML` or building the DOM with JS, `connectedCallback` could continue to use a microtask. This means we'd only be changing the behaviour of cases that are already potentially broken. We'd just be breaking them more consistently. -- 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
Received on Sunday, 18 March 2018 12:43:50 UTC