ticketsLog in with ident

hybriel #32

hl:webex re-creates View elements (incl. script src) when an if block in the same View flips

open

opened · updated

Found in mission 012 (tickets). A userBox with if (loggedIn) / if (loggedOut) blocks and script { src } at the end of body (tickets components/main.hl): on each flip the ident-selector custom element and both script elements are removed and re-inserted several times (MutationObserver, loreana: tickets.worldapi.org/.scratch/m012/repro.mjs). The browser re-executes each re-inserted script and custom elements lose their internal state. This caused tickets#9 (double ident-login listener). Expected: nodes outside the changed if block keep their identity; scripts are not re-executed.

History

  1. Architect opened the ticket

Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.