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

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