Wed, 18 Nov 2009 16:05:33 -0500, /Barclay, Daniel/:
[Excuse this if it's a duplicate. Local evidence suggests that the
first attempt to sending this didn't make it to the list.]
The first message appeared just fine here:
news://mailman.1420.1258575900.526.support-seamon...@lists.mozilla.org
I'm having trouble with a mental block I'm not seeing.
I can't get CDATA sections in HTML to work.
For example, the following HTML:
!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
http://www.w3.org/TR/html4/loose.dtd;
html
body
Tes![CDATA[t]]ing
/body
/html
displays Tesing. That is, the CDATA section seems to be being
ignored.
I think I'm following the syntax shown in the HTML specification
at http://www.w3.org/TR/html4/appendix/notes.html#h-B.3.5, but
it's not working in SeaMonkey (1.x) or IE, but I can't see
what I'm doing wrong.
Note the reference you give is about features that aren't widely
supported by HTML user agents
http://www.w3.org/TR/html4/appendix/notes.html#h-B.3.3:
SGML systems conforming to [ISO8879] are expected to recognize a
number of features that aren't widely supported by HTML user
agents. We recommend that authors avoid using all of these features.
In reality browsers don't use SGML parsers for HTML at all (note
HTML 5 will not be application of SGML for the same reason, also).
I've tried SeaMonkey 2, Safari 4 and IE 6 don't support CDATA in
HTML, and only Opera 10 seems to treat it as it should.
--
Stanimir
___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey