Scripts inserted via innerHTML (template.content) don't execute. When raw! renders HTML containing <script> tags, recreate them as live elements so the browser fetches and executes them. Fixes editor.js not loading on HTMX navigation to edit pages. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>