W3C home > Mailing lists > Public > www-style@w3.org > December 2002

Re: CSS parser recovery

From: Tantek Çelik <tantek@cs.stanford.edu>
Date: Sat, 14 Dec 2002 13:45:25 -0800
To: <www-style@w3.org>
Message-ID: <BA20E675.1BB48%tantek@cs.stanford.edu>

On 12/14/02 4:07 AM, "Ian Hickson" <ian@hixie.ch> wrote:

> On Sat, 14 Dec 2002, Tantek Çelik wrote:
>> 
>> If you are referring to IE6/Windows, the original example given:
>> 
>>  p { color : green ; q{color : blue ; }
>>  samp { color : red ; }
>> 
>> renders the paragraph green and the samp red
> 
> Um, no it doesn't. That renders all green (unless you trigger quirks mode,
> but that is out of scope for this discussion).

Argh!

Yes, I had simply copy-pasted the original example.  After making the
example HTML 4.0 Strict, the paragraph renders all green.  I had not thought
there would be *any* reason to treat this differently in quirks vs. strict
mode.


> Anyway, that wasn't the original example. The original example was:
> 
>  p {color: green; /* missing "}" */
>  q {color: blue;}
>  samp {color:red;}
> 
> ...in an XHTML document. Since WinIE doesn't support XHTML,

Actually, the example was invalid XHTML 1.0, and thus treating it as tag
soup HTML was/is perfectly reasonable - as I've seen you argue many times
quite loudly. ;-)


> I've turned it
> into an HTML equivalent document (and slightly changed the text so as to
> not be confusing) without changing the stylesheet, and you can see that
> WinIE6 in fact renders everything green:
> 
>  http://www.hixie.ch/tests/adhoc/css/parsing/core-syntax/002-demo.html
> 
> Indeed it passes all the tests too:
> 
>  http://www.hixie.ch/tests/adhoc/css/parsing/core-syntax/001.html
>  http://www.hixie.ch/tests/adhoc/css/parsing/core-syntax/002.html
>  http://www.hixie.ch/tests/adhoc/css/parsing/core-syntax/003.html

Confirmed.

Chalk one (or several) up for the IE6/Windows guys.


> Or we could define it as I am proposing, thus backing up three
> implementations, keeping our options open, and keeping the spec
> self-consistent.

Indeed, a single implementation vs. three is quite a different matter.
Though I wonder what Opera does - I'll let Hċkon speak up if he cares to.

We'll fix Tasman to comply with this interpretation - could you suggest the
specific errata for CSS1 & 2 to clarify the interpretation in the specs?

Thanks,

Tantek
Received on Saturday, 14 December 2002 16:31:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:18 GMT