Repository navigation
fix(export): keep the SVG export readable as XML - #575
Merged
Merged
Conversation
Comments holding `--` and attribute names only HTML allows (`@click`, `:class`, `x-on:click`) were copied verbatim by the XML serializer, so the SVG download failed to parse and PNG/JPG fell back to the server render. Both are dropped before serializing; neither paints anything. Fixes #508 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
[Medium impact] The PR appears safe to merge. SummaryMakes SVG exports readable as XML when frames contain HTML-only comments or attribute names.
No actionable issues found. Tests were inspected but not run. Reviews (1) · Last reviewed commit: "fix(export): keep the SVG export readabl..." · Reviewed by Greptile |
ttalks-dev
pushed a commit
to ttalks-dev/doop
that referenced
this pull request
Nov 23, 2026
…d picker (doop-design#575) * feat(components): import from another canvas through a canvas list and picker "Import from another canvas" used to dump every component of every canvas into the panel as centred links, imported on one click, with no previews and no way back. It now swaps the panel for a list of the person's canvases, one per row with their preview, and a canvas opens a modal to pick components on previews, the ones already here greyed. Component previews sit in a fixed-height well so the panel no longer jumps while they load. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(components): keep the import picker open mid-import; count only what Import sends Closing the picker while an import ran let the run's onDone close a picker opened afterwards. A component that arrived in an earlier, partly failed run stayed ticked and counted, so Import could be enabled with nothing to send. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 40baa44dbcd3d949c44666ebeb5f4b439c226b86)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #508.
The browser export serializes the frame with
XMLSerializerinto aforeignObject. It copies HTML comments and attribute names verbatim, so a frame holding<!-- Hero -- CTA -->or@click/:class/x-on:click(common in agent-written Alpine/Vue markup) produced:dropNonXmlinsrc/lib/frameRaster.tsnow removes comments and any un-namespaced attribute whose name isn't an XML NCName (anxml:prefix is kept), template contents included. Neither paints anything, and the bindings are inert once scripts are stripped.Tests
Two cases in
tests/frameRasterBrowser.test.ts: the SVG parses as XML with valid attributes kept, and the PNG renders in the browser. Both fail without the fix.🤖 Generated with Claude Code