[Bug 24] HTML::Parser in XML mode doesn't work with lowercase doctypes

http://www.w3.org/Bugs/Public/show_bug.cgi?id=24





------- Comment #10 from ot@w3.org  2006-08-31 01:58 -------
(In reply to comment #9)
> I guess relying on Content-Type alone for the SGML/XML mode decision may not
> work too well with uploaded documents and/or markup submitted through a
> textarea.  
> Maybe require the user to set the mode in those cases?  

Upload should not be much of a problem, should it? Only for .html documents
which would probably be treated as html even if they are XHTML 1.0, but it may
just push more people to use .xhtml and serve as application/xhtml+xml.

Direct input is an issue indeed, however, and I suppose we could have a "treat
as HTML | treat as XML" radio choice. Similar in a way to what valet does, but
probably more accessible to the layman than a choice of parsers.

> This would however have
> an effect on the CGI "API" (think 3rd party tools 
> submitting docs to the validator).

True. That means we need a default for the direct input mode.

Received on Thursday, 31 August 2006 01:58:35 UTC