Files
hyperframes/packages
Miguel Ángel cc9c7eb03f fix(studio): handle full HTML doc sub-compositions in preview
buildSubCompositionHtml previously assumed all sub-compositions used
<template> wrappers. Full HTML document compositions (like the
north-korea-locked-down and nyc-paris-flight registry blocks) were
nested as-is inside <body>, producing invalid HTML with nested <html>
and <head> elements. This caused <style> and <script> tags from the
composition's <head> to be misplaced, and asset paths to fail when
combined with the injected <base> tag.

Now detects full HTML documents and extracts head styles/scripts and
body content separately, producing clean valid HTML where the
composition's CSS lands in <head> and asset-relative paths resolve
correctly via the <base> tag.
2026-05-15 20:25:17 -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