Files
hyperframes/packages
Miguel Ángel bd8fc5869e fix(studio): address review — widen head extraction, DRY rewrite, forward attrs
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.
2026-05-15 20:41:11 -07:00
..
2026-05-15 19:20:28 -07:00
2026-05-15 19:20:28 -07:00
2026-05-15 19:20:28 -07:00
2026-05-15 19:20:28 -07:00
2026-05-15 19:20:28 -07:00
2026-05-15 19:20:28 -07:00