I think you are hallucinating because alcohol! 🙂 As for your question the <base> tag is injected automatically by the preview sandbox so relative URLs (images, links, scripts) resolve correctly when loading external HTML that part is intentional. The codemulator itself actually executes the code live. The screenshot just used Reddit's page source as a test input.
Fair point. The clone is just the entry point it drops the page's source into the editor so you can edit it freely, run it live in the sandbox, and export it. The base tag only exists so the preview resolves assets while you work. You're right that the exported HTML still pulls CSS/JS from the origin a fully self-contained offline copy would need asset localization, which is a fair idea for a future "save offline" mode.
This feature has many issues, and i will work on improving it in the coming days.
Currently it captures the original response HTML. the raw source the server returns, not the post-JS rendered DOM. Server-rendered pages come across fully; client-rendered SPAs arrive as their shell plus script tags, and their runtime API calls generally won't succeed inside the sandbox, so they don't render usefully today. The focus right now is giving you real-world source you can edit and run live.
1
u/YoRt3m 2d ago
Am I hallucinating or all it does is taking the html and add <base> meta tag?