Bug #62967
closedxhtml cleaning broken for javascript
100%
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!
Updated by Markus Klein about 10 years ago
I'm sure this is a duplicate... I read this somewhere else recently.
I also added the relation to the ticket.
Updated by Gerrit Code Review about 10 years ago
- 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
Updated by Oliver Hader about 10 years ago
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>');
Updated by Gerrit Code Review about 10 years ago
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
Updated by Gerrit Code Review about 10 years ago
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
Updated by Nicole Cordes almost 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset e2873344f27a7445579a229b9837a81c63abe17b.
Updated by Gerrit Code Review almost 10 years ago
- 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
Updated by Nicole Cordes almost 10 years ago
- Status changed from Under Review to Resolved
Applied in changeset 5c267d20b8921cd58239f38a96ca9ce72e82c058.