W3C home > Mailing lists > Public > www-style@w3.org > June 2004

Re: CSS on invalid HTML

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 03 Jun 2004 11:26:33 -0500
Message-ID: <40BF5139.6050704@mit.edu>
To: "Jukka K. Korpela" <jkorpela@cs.tut.fi>
Cc: www-style@w3.org

Jukka K. Korpela wrote:
>>CSS is applied to a DOM.
> Is there an authoritative definition that says so? For CSS 1, CSS 2, or
> the CSS 2.1 draft, or the CSS 3 drafts?

http://www.w3.org/TR/CSS21/intro.html#processing-model seems to be pretty clear 
on this (it uses the term "Document Tree" but for HTML and XML that's really the 
same thing; the normative definition of "Document Tree" is at 

> That would mean that no requirements are imposed, since HTML
> specifications do not set any requirements on error processing, or on the
> generation of a DOM (even for valid documents).

That's true.  And an HTML processor that deals with HTML without building a 
document tree (eg NS4) would probably have a hard time implementing CSS in any 
sort of reasonable way.....  The behavior of CSS would have to be as if a 
document tree had in fact been built.

Received on Thursday, 3 June 2004 12:26:44 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:14 UTC