mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
Add focused coverage for the ElementByIdMap that is easy to regress while optimizing lookup paths. The dynamic mutations test verifies duplicate id tree order semantics remain correct after reordering, id changes, removals, and reintroduction. The shadow root routing test verifies lookups stay routed to the correct scope when an element with an id is removed and moved across shadow roots and into the document.
8 lines
253 B
Plaintext
8 lines
253 B
Plaintext
shadow1 has foo initially: true
|
|
shadow1 has foo after remove: true
|
|
shadow1 has foo after move: true
|
|
shadow2 has foo after move: true
|
|
document has foo while in shadow: true
|
|
shadow2 has foo after moving to document: true
|
|
document has foo after move: true
|