mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-23 11:29:54 +00:00
A literal `<video>` written inside a CSS comment block (e.g.
`/* card uses <video> as surface */`) was being picked as the
composition root, producing two cascading false errors:
`root_missing_composition_id` + `root_missing_dimensions`.
`findRootTag` now masks comment + style + script ranges (with same-length
whitespace so tag offsets stay aligned) before running the tag scan.
Existing `stripJsComments` / `extractScriptTextsAndSrcs` exports preserved
(downstream rule consumers in rules/{adapters,composition,core,gsap}.ts
still read `rootTag.raw` + `rootTag.index` against the real source
offsets — safe under the new masking).