[thelist] XHTML comment tag

David Dorward evolt at david.us-lot.org
Wed Feb 5 10:46:00 CST 2003


On Wed, Feb 05, 2003 at 10:32:39 -0600, Ben Dyer wrote:
> The <!-- Comment --> isn't deprecated in XHTML.  It should work fine.
>
> The <![CDATA[ ... ]]> is for hiding the contents of <script> or <style>
> tags.

I was under the impression that CDATA indicators were to mark data that isn't
XML (such as JavaScript or CSS), so that parsers don't choke on it, not to
hide it from older browsers (although it might have that side effect).

--
David Dorward                                   http://david.us-lot.org/
"You cannot rewrite history, not one line."
                                      - The Doctor (Dr. Who: The Aztecs)



More information about the thelist mailing list