Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

oncanplay event called after video element is removed #14245

Copy link
Copy link
Closed
@michelheusschen

Description

@michelheusschen
Issue body actions

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.