Skip to content

Parser: Wrap javascript_tag content in CDATANode#1574

Merged
marcoroth merged 1 commit intomainfrom
parser-cdata-wrapping
Apr 2, 2026
Merged

Parser: Wrap javascript_tag content in CDATANode#1574
marcoroth merged 1 commit intomainfrom
parser-cdata-wrapping

Conversation

@marcoroth
Copy link
Copy Markdown
Owner

In Rails, javascript_tag wraps content in //<![CDATA[...//]]> for XHTML compatibility. This adds the same wrapping at the parser level using CDATANode for both inline content and block form.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 2, 2026

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

commit: f70897a

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 2, 2026

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

commit: 1a4c698

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 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 f70897a


✅ Preview deployment has been cleaned up.

@marcoroth marcoroth merged commit 5860f38 into main Apr 2, 2026
32 checks passed
@marcoroth marcoroth deleted the parser-cdata-wrapping branch April 2, 2026 01:36
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.

1 participant