You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Render exports the authored src when a script sets a video's src in a querySelectorAll loop, and check says nothing #7504
A timed <video> whose src an inline script sets synchronously in a loop renders with its authored src. snapshot and preview show the script's clip, and check passes with 0 warnings.
extractMediaSrcMutations only keeps writes whose target resolves to a literal getElementById / querySelector lookup, so this write never opens the browser probe. The media_runtime_src_mutation lint rule uses the same parser, so it stays silent too.
Control: with document.querySelector("#clip").src = "assets/blue-swapped.mp4" instead of the loop, lint warns media_runtime_src_mutation, the log shows "reasons":["runtime-created or source-mutated media"], and the render is blue.
Two possible fixes: teach the parser the loop shape, or treat any src write it cannot resolve as a reason to probe when the document has <video> or <audio>. Happy to send a PR for whichever you prefer.
Activity