Bug in python-xml xmlproc.py parsing of DTD declaration

A bug was reported on the W3C Mobile BP checker [1] that triggered a
bogus ill-formedness error on pages with a doctype of the form of:
<!DOCTYPE html>

This bug originated from xmlproc.py, part of the python-xml package in
Debian; the code in there assumes that you need a whitespace after the
Name part of the DTD, but that isn't so according to the XML spec:
http://www.w3.org/TR/2006/REC-xml-20060816/#NT-doctypedecl

The attached patch applies to xmlproc.py v 1.25 and fixes that bug. (I'm
sending this to www-archive rather than the bug system for that package,
since that project seems to be no longer maintained).

Dom

Received on Thursday, 14 June 2007 12:47:10 UTC