Re: tests that should not be case-sensitive

Johannes Hofmann <[email protected]>
Newsgroups gmane.comp.web.dillo.devel
Message-ID <[email protected]>
On Wed, Nov 09, 2011 at 02:46:00AM +0000, corvid wrote:
> 
> I don't want to do anything about this until we get the big patch
> committed, but I just looked through the str(n)cmp calls in dillo,
> and I found:
> 
> - a bunch of cases where we test url strings with the scheme
>   included.
> 
> - hostname tests in dns.c. I don't know that code at all, though.
>   Is there any reason why it has to treat the hostnames that way?
> 
> - generic font-family names in styleengine.cc. CSS 2.1 says:
>   "All CSS syntax is case-insensitive within the ASCII range (i.e.,
>   [a-z] and [A-Z] are equivalent), except for parts that are not
>   under the control of CSS. For example, the case-sensitivity of
>   values of the HTML attributes "id" and "class", of font names,
>   and of URIs lies outside the scope of this specification. Note
>   in particular that element names are case-insensitive in HTML,
>   but case-sensitive in XML."
>   ...although I know "@charset" has to be lowercase, so this
>   might not be the ultimate answer, but I didn't see anything
>   suggesting otherwise.

Right. Firefox also seems to accept font-family:MONOSPACE

Cheers,
Johannes
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.