Re: CSS parser recovery

On Sat, 14 Dec 2002, David Woolley wrote:

> 
> The subject of this thread is part of the confusion.  The rules aren't
> about error recovery but about forward compatibility; they are intended
> to be applied to valid future versions of CSS, so that current renderers
> fail in a minimally degraded way, not to invalid current ones.
> 

Indeed.

I had started to write a long e-mail about the three stages of CSS parsing
(tokenization, generic CSS, specific CSS1/2/3/SVG/Mobile/etc. parsing) and
how the rules for ignoring tokens only apply to the last stage, but David
Woolley stated it much better. A file that fails the generic CSS grammar
is simply not CSS and the spec says nothing about that case.

(Whether it should is a whole different debate.)



Bert
-- 
  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos/                              W3C/INRIA
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France

Received on Saturday, 14 December 2002 08:27:21 UTC