Commit Graph

4 Commits

Author SHA1 Message Date
Shannon Booth
d330171be3 Tests/LibWeb: Import WPT test for iframe insertion/removing steps
The failing test is because we are not invoking 'process the iframe
attributes' synchronously in the <iframe> post connection /
insertion steps.
2026-03-25 14:49:36 +01:00
Shannon Booth
27436c3971 LibWeb/HTML: Do not run script on child removal
Matching the behaviour of the other big three browser engines,
also tested by WPT, but does not appear to be explicitly specified.

I also noticed when investigating that browser engines disagree
about whether a child mutation should trigger script execution.
For this, I've just gone with the behaviour of Webkit/Chromium of
not running script.
2026-03-19 09:46:54 +01:00
Sam Atkins
c0b8f47a76 LibWeb/HTML: Move connectedness check for script post_connection()
Corresponds to:
905384d140

Also import the test added along with that change.
2025-12-01 11:07:16 +00:00
Shannon Booth
18dddaa742 LibWeb/HTML: Use DOM's post-connection steps for iframe elements
See: https://github.com/whatwg/html/commit/c8ec987d1
2024-12-14 12:06:41 -08:00