Skip to content

Conversation

@marcoroth
Copy link
Owner

This pull request adds svg and math to the excluded tags list so ERB outputs inside these elements are not wrapped in spans.

The DebugVisitor wraps ERB outputs in <span> elements for debugging in ReActionView. However, <span> is not valid inside SVG or MathML, causing browsers to discard the wrappers and break rendering.

Resolves #1052

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 18, 2026

npx https://pkg.pr.new/@herb-tools/formatter@1084
npx https://pkg.pr.new/@herb-tools/language-server@1084
npx https://pkg.pr.new/@herb-tools/linter@1084

commit: f36a683

@github-actions
Copy link

github-actions bot commented Jan 18, 2026

🌿 Interactive Playground and Documentation Preview

A preview deployment has been built for this pull request. Try out the changes live in the interactive playground:


🌱 Grown from commit f36a683


✅ Preview deployment has been cleaned up.

@marcoroth marcoroth merged commit 992eb6c into main Jan 18, 2026
32 checks passed
@marcoroth marcoroth deleted the debug-svg-elements branch January 18, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Engine: DebugVisitor breaks SVG rendering by inserting <span> elements

2 participants