Geoffrey Hoffman wrote:

> Unrelated question... what is the purpose of:
> 
> /*<![CDATA[*/

See: <http://www.w3.org/TR/2000/REC-xml-20001006#sec-cdata-sect>

I mark up for XHTML served as 'application/xhtml+xml', and then serve it
as 'text/html' since IE doesn't support it otherwise.
See: <http://192.168.1.103/contents/wd_1_06_03.xhtml> (which doesn't
work in IE, try this instead:
<http://192.168.1.103/contents/wd_1_06_03.html> ).

When any of my documents goes on line as 'text/html', the CDATA
delimiters really don't matter any more than the old (and by now pretty
useless) <!-- data --> comment delimiters some use to prevent old
browsers from render style-blocks and script-blocks in page-head
content. Style-blocks and script-blocks are not rendered anyway in even
quite old html browsers, but CDATA delimiters certainly do no harm though.

Locally it matters since my editor is geared towards XHTML as XML, and
my markup gets cleaned up by Tidy following XML rules. So, if I don't
put CDATA section delimiters in manually, Tidy will, and my editor and
Tidy will thereafter leave my styles alone and not try to reformat them
in any way.

regards
        Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to