W3C home > Mailing lists > Public > www-html@w3.org > February 2006

Re: XHTML Print & DTDs

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Thu, 02 Feb 2006 13:20:43 +0100
Message-ID: <20060202132043.6icx57e7grfkk8c0@webmail.annevankesteren.nl>
To: David Dorward <david@us-lot.org>
Cc: katrina maramba <ka3na_423@yahoo.com>, www-html@w3.org

Quoting David Dorward <david@us-lot.org>:
> It shouldn't be. In practise a number of browsers use the specified
> Doctype (or lack there of) to judge the author's intelligence. Certain
> Doctypes will trigger closer conformance to standards, others will
> introduce deliberate bugs. If you are developing a user agent, then I
> suggest you don't repeat this pattern.

1) Browsers don't do this for XML Documents. 2) Without it browsers are never
able to conform to "standards" and work with the web as it is.

Given that your suggestion makes no sense whatsoever, unless you hope 
the UA is
going to fail miserably in terms of adoption/market share.


>>    6.  What I wish to develop is an XHTML-Print PARSER.  Would DTD   
>>  affect the
>>    way I should parse the document?  Should I parse differently for the
>>    strict, differently for transitional, differently for frameset and
>>    differently for print10?

You should use an XML parser and ignore the DOCTYPE. Validating parsers are a
myth.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
Received on Thursday, 2 February 2006 12:20:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:05 GMT