Bug #18508
closedconfig.xhtml_cleaning = all mixes up inline JavaScript. Should be documented.
0%
Description
There is an issue (according to Christopher Torgalson for years) with the xhtml-cleaning that mixes up inline JavaScript in a html-template file.
Since there seems to be no chance for a fix anytime soon, it should be documented in the appropriate TSref section saying something like "warning: may ^$#@!$^& inline javascript".
Below is a conversation from the dev-mailing list, that lead to this entry
1. Christopher Schnell:
If the page with a line like this is rendered by the frontend, the next
lines in the script-code are absolute rubbish. Some chars are missing,
others are replaced, linebreaks disappear, just pure rubbish. If I open
the same script in fileadmin again, it is perfectly well.
2. Oliver Klee:
This sounds like you're using some kind of HTML cleaning that happily
processes the innocent JavaScript.
3. Christopher Schnell:
You are absolutely right. it was: config.xhtml_cleaning = all
When I disable xhtml-cleaning, it works perfectly. Now the question
would be if config.xhtml_cleaning is a part of TYPO3 and if it is a bug
or not. Should I report to BT?
4. Christopher Torgalson:
The issue has been known for at least a couple of years, so without a
patch, I doubt it'll get fixed soon and the problem won't be solved.
What I'd suggest instead is filing a bug report re: the appropriate
section in the TSref saying something like "warning: may ^$#@!$^&
inline javascript".
(issue imported from #M7952)