From 196a483ae225d9f29483c074382de8aa3a6c71ef Mon Sep 17 00:00:00 2001 From: Dominic Farolino Date: Thu, 22 Feb 2024 12:52:20 -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