- From: Chris Lilley <chris@w3.org>
- Date: Mon, 27 Sep 1999 03:19:03 +0200
- To: jelks@jelks.nu
- CC: Bert Bos <Bert.Bos@sophia.inria.fr>, www-style@w3.org
Jelks Cabaniss wrote:
> 2) If you enclose the STYLE element's contents in comments (a la HTML authoring
> for CSS-challenged browsers and indexing agents)
>
> <STYLE ID="x12"><!--
> /* unrendered declarations here */
> --></STYLE>
>
> it works in *both* IE5 and Gecko: the contents of STYLE are not rendered, but
> the rest of the document is, according to the embedded style rules.
Instead of that, use a CDATA marked section like this:
<style ID="x12"><![CDATA[
/* unrendered declarations here */
]]>
</style>
Which does the same thing, but is more correct.
--
Chris
Received on Sunday, 26 September 1999 21:19:38 UTC