[TheList] CSS diff - IE, NN, Mozilla, Opera

noah noah at tookish.net
Tue Aug 14 23:43:48 CDT 2001


At 02:52 PM 13/08/2001, James Aylard wrote:
>spinhead,
>
> > Bingo! Opera is now happy with the CSS. Wasn't aware of the illegality of
> > the underscore; guess I need to read up a bit. Thanks.
>
>     Well, technically the underscore *is* allowed, but this is clarified
>only in a recent modification to the CSS 2 errata document [1]. I believe
>the most-recent versions of Mozilla and IE 6 beta will support the use of
>the underscore in classes and ids, although I haven't yet tested them. Opera
>adheres to the full CSS 2 specification, but will presumably be updated at
>some point to accommodate underscores.
>     Nonetheless, it is clear that its use on the Internet, where it isn't
>possible to dictate browser make and version, is risky and should be
>avoided.

At the moment, the CSS validator at w3.org 
(http://jigsaw.w3.org/css-validator/) will return a "Parse Error" if you 
include an underscore, even if you validate as "CSS version 2" - presumably 
this will also change eventually.

Cheers,
Noah





More information about the thelist mailing list