Iframe reloads when moved around the DOM tree.
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: doug.copi, Unassigned)
References
Details
(Keywords: testcase)
Attachments
(6 files, 5 obsolete files)
Comment 1•20 years ago
|
||
Comment 5•20 years ago
|
||
Comment 6•20 years ago
|
||
Comment 7•19 years ago
|
||
Comment 8•19 years ago
|
||
Comment 9•19 years ago
|
||
Comment 10•19 years ago
|
||
Comment 11•19 years ago
|
||
Comment 12•19 years ago
|
||
Comment 13•19 years ago
|
||
Comment 14•19 years ago
|
||
Comment 15•19 years ago
|
||
Reporter | ||
Comment 16•19 years ago
|
||
Comment 17•19 years ago
|
||
Comment 18•18 years ago
|
||
Comment 19•17 years ago
|
||
Comment 21•17 years ago
|
||
Comment 22•17 years ago
|
||
Comment 23•17 years ago
|
||
Comment 24•17 years ago
|
||
Comment 25•17 years ago
|
||
Comment 26•17 years ago
|
||
Comment 27•17 years ago
|
||
Comment 28•17 years ago
|
||
Updated•17 years ago
|
Comment 29•17 years ago
|
||
Comment 30•17 years ago
|
||
Comment 31•17 years ago
|
||
Comment 32•17 years ago
|
||
Comment 33•17 years ago
|
||
Comment 34•17 years ago
|
||
Comment 35•17 years ago
|
||
Comment 36•17 years ago
|
||
Comment 37•17 years ago
|
||
Comment 38•17 years ago
|
||
Comment 39•17 years ago
|
||
Comment 40•17 years ago
|
||
Comment 41•17 years ago
|
||
Comment 42•17 years ago
|
||
Comment 43•17 years ago
|
||
Comment 44•17 years ago
|
||
Comment 45•17 years ago
|
||
Comment 46•17 years ago
|
||
Comment 47•17 years ago
|
||
Comment 48•17 years ago
|
||
Comment 49•17 years ago
|
||
Comment 50•17 years ago
|
||
Updated•17 years ago
|
Comment 51•17 years ago
|
||
Comment 52•17 years ago
|
||
Comment 53•17 years ago
|
||
Comment 54•17 years ago
|
||
Comment 55•17 years ago
|
||
Comment 56•17 years ago
|
||
Comment 57•17 years ago
|
||
Comment 58•17 years ago
|
||
Comment 59•17 years ago
|
||
Comment 60•17 years ago
|
||
Comment 61•17 years ago
|
||
Comment 62•17 years ago
|
||
Comment 63•17 years ago
|
||
Comment 64•17 years ago
|
||
Comment 65•17 years ago
|
||
Comment 66•17 years ago
|
||
Comment 67•17 years ago
|
||
Comment 68•17 years ago
|
||
Comment 69•17 years ago
|
||
Comment 70•17 years ago
|
||
Comment 71•17 years ago
|
||
Comment 72•16 years ago
|
||
Comment 73•16 years ago
|
||
Comment 74•16 years ago
|
||
Comment 75•15 years ago
|
||
Comment 76•15 years ago
|
||
Comment 77•15 years ago
|
||
Comment 78•14 years ago
|
||
Comment 79•13 years ago
|
||
Comment 80•13 years ago
|
||
Comment 81•13 years ago
|
||
Comment 82•13 years ago
|
||
Comment 83•13 years ago
|
||
Comment 84•13 years ago
|
||
Comment 85•13 years ago
|
||
Comment 86•13 years ago
|
||
Comment 87•13 years ago
|
||
Comment 88•13 years ago
|
||
Comment 89•13 years ago
|
||
Comment 90•13 years ago
|
||
Comment 91•13 years ago
|
||
Comment 92•13 years ago
|
||
Comment 93•10 years ago
|
||
Comment 94•10 years ago
|
||
Comment 95•10 years ago
|
||
Comment 96•10 years ago
|
||
Comment 97•10 years ago
|
||
Comment 98•10 years ago
|
||
Comment 99•10 years ago
|
||
Comment 100•10 years ago
|
||
Updated•10 years ago
|
Comment 101•10 years ago
|
||
Comment 102•10 years ago
|
||
Comment 103•10 years ago
|
||
Comment 105•3 years ago
|
||
I am sorry to wake this up after 7 years, but I felt the urgency to say this:
It is 2022. The Web has evolved. The possibilities that this particular implementation blocks are still literally infinite. We ought to come up with a simple way to preserve the iframe state during a DOM removal.
Please, think of it this way:
-
Let's all recall iframes are a beautiful old dream for the Web; The Web as a virtual universe where web apps can coexist and collaborate with each other, and we all win if they can be used soundly inside any web page;
-
Removing elements from the DOM and putting them back is simply a very common operation - it is very often the one way Web Developers simulate movement on the screen. It is the canonical way to implement many sophisticated interactivity patterns, such as features like "sortable lists", "drag and drop", "layers", "animation between parents", you name it;
-
If whatever element on a web page simply feels like "reloading" every time you move it around, that ought to be considered a very bad UX. A seamless integrated component "going blank and losing all state all of a sudden"; not good.
Conclusion: iframes reload on DOM removal, so it is currently IMPOSSIBLE to implement a wide range of highly interactive web applications using iframes without damaging the user experience!
That said, I feel this discussion needs to be re-heated.
What is the simplest change in the codebase that would enable such use cases in the most safe and seamless way?
Comment 106•3 years ago
|
||
Iframes can already kinda move around by using shadow DOM, see https://github.com/whatwg/html/issues/5484#issuecomment-620481794. The right place for this discussion is that repo, btw.
Description
•