Bug #62967
closed
xhtml cleaning broken for javascript
Added by Nicole Cordes almost 10 years ago.
Updated almost 6 years ago.
Description
Due to commit https://review.typo3.org/#/c/30240/ the xhtml_cleaning for javascript gets broken as the comments were removed and javascript is parsed in a wrong way. A solution would be to exclude CDATA-code from parsing.
As the xhtml_cleaning should be removed in master anyway, the patch only applies to 6.2 and 4.5!
I'm sure this is a duplicate... I read this somewhere else recently.
I also added the relation to the ticket.
- Status changed from New to Under Review
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34192
TypoScript to reproduce
page.jsInline {
123 = TEXT
123.value = console.log('<hello world>');
}
config.xhtml_cleaning = all
config.removeDefaultJS = 0
The frontend rendering will produce
console.log('<hello world="">');
instead of just
console.log('<hello world>');
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34207
Patch set 2 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34192
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_4-5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35039
- Status changed from Under Review to Resolved
- Status changed from Resolved to Closed
Also available in: Atom
PDF