W3C home > Mailing lists > Public > www-talk@w3.org > May to June 2001

RE: XHTML's reception

From: Klaas De Waele <klaas@gracegraphics.be>
Date: Wed, 27 Jun 2001 12:12:12 +0200
Message-ID: <F16ABE403FD3D311A61500608CC0D1670C1D55@pdc>
To: "'Clover Andrew'" <aclover@1value.com>, "'www-talk@w3.org'" <www-talk@w3.org>
Cc: "'www-html@w3.org'" <www-html@w3.org>
No problem with the ]] and -- sequence, but wouldn't the <./ sequence make
it a bit of a pain to include eventual end tags like <./td> in the script...

- Kayjey -

-----Oorspronkelijk bericht-----
Van: www-html-request@w3.org [mailto:www-html-request@w3.org]Namens
Clover Andrew
Verzonden: woensdag 27 juni 2001 11:10
Aan: www-talk@w3.org
CC: www-html@w3.org
Onderwerp: Re: XHTML's reception

> however he omits the --> ending that (i think i'm right in saying)
> browsers like IE2 require

Actually, there was no <!-- around the CDATA, so an ending wasn't
required; I was hoping indeed that tag-soup munchers would see the
]]> as the end of the <![CDATA unknown-SGML-magic "tag". Come to
think of it, though, this causes a problem in that you can't get a
'>' character into the script without it also ending the unknown-tag
on pre-script browsers. Which is a bit harsh.

I offer, then, this even more aesthetically questionable solution:

  <script type="text/javascript"><!-- // --><![CDATA[ // ><!--
  // --><!]]></script>

Which I think should work on XML parsers and tag-soup browsers,
with only the sequences "--", "</" and "]]>" taboo in the scripting.
It works on everything I've tried here, except of course Mozilla
which uses an XML parser but fails to understand CDATA marked
sections altogether. Ah well...

Andrew Clover
Technical Consultant

Received on Wednesday, 27 June 2001 06:19:48 UTC

This archive was generated by hypermail 2.4.0 : Monday, 20 January 2020 16:08:25 UTC