W3C home > Mailing lists > Public > www-archive@w3.org > June 2007

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

From: Dominique Hazael-Massieux <dom@w3.org>
Date: Thu, 14 Jun 2007 14:46:58 +0200
To: www-archive <www-archive@w3.org>
Message-Id: <1181825218.25689.29.camel@altostratustier>
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:

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).


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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:33:10 UTC