joomla/joomla-cms — pull request #906 by piotr-cz (2013-03-27 12:48:29+00:00)
Title: commenting CDATA for scripts and styles in XHTML documents

documents with XHTML mime type don't escape `` for inline scripts and styles as suggested by whatwg and MDC recommendations:

Patch adds
- for scripts: `//`
- for styles: `/**/`

References:
- [whatwg: HTML vs. XHTML > Element-specific parsing
> script and style](http://wiki.whatwg.org/wiki/HTML_vs._XHTML#Element-specific_parsing)
- [MDC: Properly Using CSS and JavaScript in XHTML Documents](https://developer.mozilla.org/en-US/docs/Properly_Using_CSS_and_JavaScript_in_XHTML_Documents#Using_CDATA_Instead_of_Comments)