- From: techsin <notifications@github.com>
- Date: Sun, 17 Apr 2022 02:48:11 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Sunday, 17 April 2022 09:48:23 UTC
I personally wanted this because I needed to show the same iframe for different screens, however, (react) unmounts a component and then mounts a new one for client side routing. This meant that the same iframe would have to reload every time. I figured if I could swap loaded-iframe with hidden div and then swap it back on route change then I'd have be able to keep the iframe element. I tried keep a JS only reference but the act of appending and removing from the DOM would 'erase' the iframe. So if for whatever reason the replaceNode() func can't be implemented even just having programmatic way to keep a reference to DOM element in a manner that preserves its rendering or something would be an upgrade. At the time I was so frustrated I was open to learn C++ and try adding it to chromium. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/891#issuecomment-1100842718 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/issues/891/1100842718@github.com>
Received on Sunday, 17 April 2022 09:48:23 UTC