Open GrandmasterB42 opened 8 months ago
Likely related to this issue when swapping the <video>
element:
https://github.com/bigskysoftware/htmx/issues/764
You may find something this works to recreate the shadow dom:
let video1 = document.getElementById("video1");
video1.replaceWith(video1.cloneNode(true));
Thank you very much, this worked!
I was trying to add Picture-in-Picture support to a video element. But the website would always "crash" with STATUS_ACCESS_VIOLATION.
I tried reproducing this issue with just plain html, and it didn't seem to happen
It seems to only happen when htmx loads the element containing that functionallity and I couldn't find any other cause after hours of debugging, which is why I am here now.
In the example provided below, the Picture-in-Picture button on the upper element works just fine, while the section loaded at runtime by htmx causes the error or freezes the site. I tested this on Chrome and Edge on Windows 10, all should be the current newest stable release.
Thanks in advance for helping!
The video source I used is the media of the day from wikimedia as I didn't know where else to take a video for this from
Basic backend in Rust, htmx.js contains htmx 1.9.10
vid.html
inner.html