mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-14 13:27:13 +00:00
Addresses review notes from hf#885: - Extract full <head> innerHTML instead of only <style>+<script>. This preserves <link rel="stylesheet">, <meta>, and any other head-level tags. Prevents silent-degrade when a composition ships external CSS. - Extract and forward <html> and <body> attributes (lang, class, data-*) to the assembled output page. - DRY the triplicated rewrite block into rewriteRelativePaths() shared across template, full-doc, and fragment branches. - Anchor isFullHtmlDocument regex with ^\s* to avoid false positives from stray <html> inside script/template content. - Add fragment-branch test (raw HTML without template or doctype). - Document the deliberate last-write-wins precedence for composition scripts appended after the project head.