Re: XHTML Print & DTDs

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 UTC