1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-28 19:32:07 +00:00
serenity/Tests/LibWeb/Layout
Timothy Flynn 18a4455d43 LibWeb: Do not assume a shadow root has a host
After commit ff48b7333c, we remove shadow
roots from elements that are removed from the DOM. Setting a node's
shadow root to null also sets that shadow root's host to null. Thus, the
comment in Node::is_shadow_including_descendant_of that assumes the host
is always non-null is not true.

The test added here would previously crash when interacting with a node
that is a descendant of a removed shadow root.
2023-12-04 01:33:57 +01:00
..
expected LibWeb: Do not assume a shadow root has a host 2023-12-04 01:33:57 +01:00
input LibWeb: Do not assume a shadow root has a host 2023-12-04 01:33:57 +01:00