Re: [whatwg/dom] Proposal: New method to reorder child nodes (#891)

> > @rniwa what problem would be caused by disconnecting an `<iframe>` from its parent if we can also guarantee that no script would run until it is attached again?
> 
> Well, that's a big "if". Something like that is not possible to implement in WebKit today.

Now that I'm thinking about this problem more, one serious challenge is correctly invalidating and updating the computed style of each node when this happens due to things like sibling selector, `:first-of-type`, `:first-child`, etc... that could put `display: none` on object and embed elements since right now, making those elements `display: none` would unload the "plugin". There might be other subtle challenges that I haven't thought of like what happens to things like focus, selection, etc... since selection end points may clip if the reorder were to happen.

-- 
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/891#issuecomment-808824595

Received on Sunday, 28 March 2021 00:51:12 UTC