fix(techdemo): rebootstrap inserted islands

Keep opaque island widgets live when slhx swaps or later DOM insertion adds a new island, and tear down the listener when an island leaves the document.

req: interop/001

req: examples/001
This commit is contained in:
slhx agent
2026-06-01 19:57:39 +02:00
parent 9d3f70e9fe
commit d732c921c2
3 changed files with 46 additions and 2 deletions
+2
View File
@@ -71,6 +71,8 @@ fn product_is_e2e_working_over_http() {
assert!(island.header("content-type").contains("javascript"));
assert!(island.text().contains("slhx:island-orbit"));
assert!(island.text().contains("data-slhx-island"));
assert!(island.text().contains("MutationObserver"));
assert!(island.text().contains("removeEventListener"));
let architecture = request("GET", "/architecture", &[("X-SLHX-Partial", "1")], "");
assert_eq!(architecture.status, 200);