Re: [w3c/webcomponents] Unexpected upgrade timing when appending an element and script together (#606)

This might not be well-defined currently, but I think the way this works currently is that we first append each element, and then iterate over the inserted elements again to execute any scripts. That is, the script can observe later inserted elements. Emptying the stack before executing the script seems like a reasonable thing to do.

This should be easy to fix as part of fixing https://github.com/whatwg/html/issues/1127.

-- 
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/606#issuecomment-366508071

Received on Sunday, 18 February 2018 11:03:04 UTC