W3C home > Mailing lists > Public > www-style@w3.org > September 1999

Re: Embedded style and style wrappers (RE: New WD: CSS3 selectors)

From: Chris Lilley <chris@w3.org>
Date: Mon, 27 Sep 1999 03:19:03 +0200
Message-ID: <37EEC607.2B26077C@w3.org>
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 */

Which does the same thing, but is more correct.

Received on Sunday, 26 September 1999 21:19:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:00 GMT