mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-19 11:26:02 +00:00
`video_nested_in_timed_element` previously kept HTML5 void elements (e.g.
<img>, <br>) on its parent stack forever — they have no closing tag — so
any later <video data-start> was reported as nested inside the most recent
<img>. Skip void elements explicitly.
`overlapping_gsap_tweens` walked GSAP `.to/.from/.fromTo/.set/.add` regex
matches and indexed into `parsed.animations` from `parseGsapScript`. The
parser silently drops calls whose first argument is not a quoted selector
(object-target tweens like `tl.to({ _: 0 }, …)` used to anchor a timeline's
duration), but the regex still matched them — drifting the index by one
and making subsequent windows pick up the wrong selector and position.
Skip matches with non-quoted first arguments so both passes agree.
Both regressions surfaced while linting an HDR showcase composition that
mixes timed <img> HDR layers with <video> HDR layers and uses a phantom
duration tween in its GSAP timeline.
Made-with: Cursor