Skip to content
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

fix rendering for script/comment/CDATA inside content tags in FastPageParser.java #33

Merged
merged 1 commit into from
Jul 23, 2023

Conversation

jtodt
Copy link
Contributor

@jtodt jtodt commented Jan 9, 2015

fix script/CDATA/comment rendering inside of content tag.

reference:
https://jira.atlassian.com/browse/CONF-16098
https://jira.atlassian.com/browse/JRA-16503

Details:
we fixed the output to _buffer while in content tag (tagged = true)

behavior before fix:

<script src="..."> <script src="..."> ;-) rendered to (leading '<' is missing, comment is no comment anymore, CDATA not quoted) comment script src="..."> MyData <script src="..."> after fix rendered to: <script src="..."> <script src="..."> sorry, no tests written.

fix script/CDATA/comment rendering inside of content tag.

reference:
https://jira.atlassian.com/browse/CONF-16098
https://jira.atlassian.com/browse/JRA-16503

Details:
we fixed the output to _buffer while in content tag (tagged = true)

behavior before fix:
<content tag="...">
<!--comment-->
<script src="...">
<![CDATA[MyData]]>
<!--<--><script src="...">       ;-)
</content>

rendered to (leading '<' is missing, comment is no comment anymore, CDATA not quoted)

<content tag="...">
comment
script src="...">
MyData
<script src="...">
</content>

after fix rendered to:

<content tag="...">
<!--comment-->
<script src="...">
<![CDATA[MyData]]>
<!--<--><script src="...">
</content>

sorry, no tests written.
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.

2 participants