Let's say I have the following html:
<my-element-one>
<my-element-two>
<my-element-three></my-element-three>
</my-element-two>
</my-element-one>
Now let's say that this was parsed in a DocumentFragment. Now I insert the fragment into the document. In what order will the attached elements of these user elements be involved? Will they sequentially start the depth first (three, two, one)? Or will they shoot from top to bottom (one, two, three)? Or is it completely undefined? If I delete the whole tree later, in what order will the pending calls be disconnected?
Finally, is this behavior compatible between the polyfill and the intended behavior of the W3C spec? I read a bunch of specs and did not find a clear explanation of how this order should look.
source
share