W3C home > Mailing lists > Public > www-validator@w3.org > April 2006

Re: Hack is valid or not

From: David Dorward <david@dorward.me.uk>
Date: Tue, 11 Apr 2006 13:53:13 +0100
To: Smay Strider <smackstrider@gmail.com>
Cc: www-validator@w3.org
Message-ID: <20060411125313.GF21817@us-lot.org>

On Mon, Apr 10, 2006 at 12:27:35PM +0530, Smay Strider wrote:
>    For css fixing of IE 5.0 versions i am using the hack
>    ! #id
>    {
>    }
>    is this a valid w3 

The ! character is not allowed in selectors in CSS 2. I don't believe
it has been proposed for anything in CSS 3 (although CSS 3 is
currently a draft and subject to change).

>    approved hack like html > body #id {  }

I wouldn't go so far as to say that the hack is W3C approved. It is
syntactically conformant to the W3C CSS 2 recommendation. (Microsoft,
on the other hand, have explicitly stated that they do not think
authors should depend on CSS hacks and should favour Conditional
Comments as an alternative).

(I read the mailing list, please address responses there and do not CC
me. Thank-you.)

David Dorward                                      http://dorward.me.uk
Received on Tuesday, 11 April 2006 12:55:34 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:56 UTC