Color handling with the new CSS parser
Dirk Mueller
khtml-devel@kde.org
Fri, 21 Feb 2003 21:51:53 +0100
On Fre, 21 Feb 2003, David Hyatt wrote:
> So the idea is you're lax about HTML color parsing, but strict about
> CSS color parsing?
We're even laxer for HTML color parsing, because basically NS4 and MSIE
parse everything that is given in BGCOLOR, COLOR and the other html
attributes as color, no matter how unlikely it is to be an actual color
specification.
> .foo { color: 336699; }
> I tested that in Mozilla and it honored the color even without the #.
> I wonder what WinIE does.
Correct, this is a regression. We used to always parse this as color in CSS
even in strict mode, which is probably why Lars removed this quirk
alltogether.
However, in fact Mozilla parses above as color in compat parsing mode
(however not in transitional or strict).
--
Dirk (received 776 mails today)