[Typo3-dev] RFC: Bug #277: utf-8 + JSMENU/feAdminLib
Martin Kutschker
Martin.Kutschker at n0spam-blackbox.net
Mon Oct 24 09:32:08 CEST 2005
Bernhard Kraft schrieb:
> Martin Kutschker wrote:
>
>> Everything (be it element content or attribute) outside of a CDATA
>> section needs to be run through htmlspecialchars(), everything inside
>> must not. TYPO3 uses CDATA for SCRIPT and STYLE so no
>> htmlspechialchars() there.
>
>
> AFAIK: Browsers don't care about our " <![CDATA[ " tag in the <script>
> tag. This is alredy defined by the DTD as CDATA ... using them or
> leaving them away, makes no difference.
It's needed (at least by the specs) for XML (xhtml). But TYPO3 never
serves xhtml as xml (application/xml or application/xhtl). It sends the
pages as text/html.
I recall that the reason for adding the CDATA tags was this mixed use of
html and xhtml. Probably you don't need the CDATA tags in a true xhtml
context. But alas, IE chokes on application/xhtml...
Masi
More information about the TYPO3-dev
mailing list