Skip to content

[!!!][TASK] CDATA sections remain in templates #1180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

s2b
Copy link
Contributor

@s2b s2b commented Aug 11, 2025

The removal of all CDATA sections was introduced with 978071f without any clear indication why this was done. The consequence now is that there is no longer a "parser stop marker", for example for inline CSS interfering with Fluid's inline syntax.

Later, this was documented as a "solution" to hide invalid Fluid syntax from the Fluid parser, for example during development. Since <f:comment> now works correctly for invalid Fluid, this patch removes the code responsible for removing the CDATA sections from templates. This is a breaking change because templates might have used CDATA in the past to comment out code.

Resolves: #1012

The removal of all CDATA sections was introduced with 978071f
without any clear indication why this was done. The consequence
now is that there is no longer a "parser stop marker", for example
for inline CSS interfering with Fluid's inline syntax.

Later, this was documented as a "solution" to hide invalid
Fluid syntax from the Fluid parser, for example during
development. Since `<f:comment>` now works correctly for
invalid Fluid, this patch removes the code responsible for
removing the CDATA sections from templates. This is a breaking
change because templates might have used `CDATA` in the
past to comment out code.

Resolves: #1012
@s2b s2b force-pushed the task/cdataRemains branch from 9497c94 to 9828d36 Compare August 11, 2025 18:03
@s2b s2b marked this pull request as draft August 11, 2025 18:06
@s2b
Copy link
Contributor Author

s2b commented Aug 11, 2025

TODO: Deprecate first in 4.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't remove CDATA sections from templates
1 participant