From c5697f6b37f48c242312d6f8601ea1f44b7f70dc Mon Sep 17 00:00:00 2001 From: Dominic Farolino Date: Thu, 22 Feb 2024 19:50:25 -0800 Subject: [PATCH] DOM: Add iframe insertion & removal steps WPTs To help resolve https://github.com/whatwg/dom/issues/808, we need WPTs asserting exactly when (DOM-observing) script can and cannot be invoked during the insertion and removing steps for iframes and script elements. The tests in this CL assert the current spec behavior of: Iframe: - Insertion: - Synchronously fire the `load` event in the iframe document - Removal: - No script is run in between multiple iframe removals. Script cannot observe the state of the DOM in between multiple synchronous removals because, i.e., no `unload` events are fired in this case per HTML [1]. Script: - Insertion: - Synchronously execute