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

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


ot@w3.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|1500                        |
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED




------- Comment #14 from ot@w3.org  2007-03-27 05:26 -------
I think this precise bug was fixed by changing the behavior to the following:

* read content type, if any
* if content type gives parse mode of TBD, or no content type, use HTML::Parser
as SGML mode
else, preparse as XML.

(that is, switch the default to SGML mode, and use XML mode only when we are
sure)
This new default will probably cause some issues with direct input ( but that's
a question for Bug #1391 ) and some custom DTDs, but over all this behavior is
more sane.

Received on Tuesday, 27 March 2007 05:27:32 UTC