Sent by James Craig on 27 February 2003 17:05
----- Original Message -----
From: "Stephanie Sullivan"
> on 2/27/03 9:11 AM, Tribou, Eric at [EMAIL-REMOVED] wrote:
>
> > IE 5.x/Win32 seems to treat CSS selectors case insensitive. So another
hack
> > could be to simply change the case of a single letter in your CSS
selector.
> > It validates, version 6 browsers ignore the selector, and IE 5 applies
it as
> > if it were legal.
> >
> > Does anyone know of any other browsers that are case insensitive to CSS
> > selectors?
>
> Would a Unix server affect the above since it is case sensitive?
It would only affect a UNIX server if the case-sensitivity were in an HTTP
request. The selectors mentioned are all handled on the client-side and
should therefore not affect any webserver. The exceptions would be mis-cased
file names in url() values.
Just the clarify, the recommendation for CSS case-sensitivity is that it
follows the language that it styles. HTML 4 is case-insensitive, so
therefore CSS that describes it should also be case-insensitive. XHTML is
XML and case-sensitive so CSS selectors linked to XHTML files should be
case-sensitive. In this way, you can actually have one CSS file that should
have different case-sensitivity depending on which file linked to it, though
I wouldn't recommend exploiting that "feature". Support for the
recommendation seems sketchy in "forgiving" browsers (as previously
mentioned about IE) and it would probably get really confusing anyway.
Later,
James Craig