Open
Description
Describe the bug
When a video element is removed in svelte 4 the on:canplay
event handler isn't called, however in svelte 5 (with and without runes) the event is called. In firefox it also causes the video to continue playing in the background, because e.currentTarget.play()
is called in the event handler.
Reproduction
https://svelte.dev/playground/d901783aed2c4df68c14459b90b3f47f?version=4.2.19
https://svelte.dev/playground/698042a4c231415fa69892808ac7a247?version=5.1.13
Logs
No response
System Info
Firefox 132.0.1
Severity
annoyance