Re: canvas <html> <body>

Sigurd Lerstad wrote:
 >
 > But I thought that XHTML was supposed to be just like any other XML format
 > that defines a set of tags, but how those tags are rendered is only
 > determined with a CSS stylesheet,

There are some aspects of XHTML (such as form controls) that can't currently be
described in CSS, but the eventual aim is basically as you describe, yes.


 > If one wants to make a generic XML viewer with CSS capabilities, should one
 > then start displaying from the root (for example <html> in XHTML) element,
 > and set in the style sheet that <head> is display:none, same for script etc.

That is correct. For an example of such a browser, look at Netscape 6.x.


However, this does not preclude browsers from having default stylesheets, for
example Netscape 6.x ships with a default stylesheet for XHTML. This "user 
agent" stylesheet is then cascaded with the author's stylesheet and the user's 
stylesheet (if any) and the result is what is used to style the document.

-- 
Ian Hickson
``The inability of a user agent to implement part of this specification due to
the limitations of a particular device (e.g., non interactive user agents will
probably not implement dynamic pseudo-classes because they make no sense
without interactivity) does not imply non-conformance.'' -- Selectors, Sec13

Received on Wednesday, 1 May 2002 07:13:47 UTC