Closed
Description
I have heard several requests for the ability to reparent iframes without reloading, including:
- React maintainers
- This stackoverflow post
- Chromium engineers working on portals
Has this been brought up as a spec issue before? I imagine someone must have thought about this before...
Would it make sense to add a method to iframes to reparent them to another element without reloading?
Another potential use case I've heard from React is to reparent elements other than iframes without losing state. An example of this would be to reparent an input element without losing focus and selection. In this case, perhaps we could have a reparenting method for any element?