[XML-SIG] [ pyxml-Bugs-404272 ] HtmlDomGenerator constructor bug
nobody
nobody@sourceforge.net
Mon, 26 Feb 2001 04:27:12 -0800
Artifact #404272, was updated on 2001-02-26 04:27
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=106473&aid=404272&group_id=6473
Category: 4Suite
Group: None
Status: Open
Priority: 5
Submitted By: Alexandre Fayolle
Assigned to: Nobody/Anonymous
Summary: HtmlDomGenerator constructor bug
Initial Comment:
The HtmlDomGenerator's constructor expects 2 arguments,
an owner document and a keepAllWs flag, whereas all
other similar classes only expect the keepAllWs flag.
The result is that when the constructor is invoked by
the Reader class, the flag is passed as the owner
document, which in turn deeply pertubates the
constructor:
>>> from xml.dom.ext.reader.Sax import Reader
>>> from xml.dom.ext.reader.HtmlSax import
HtmlDomGenerator
>>> r = Reader(saxHandlerClass = HtmlDomGenerator)
Traceback (innermost last):
File "<stdin>", line 1, in ?
File
"/usr/lib/python1.5/site-packages/xml/dom/ext/reader/Sax.py",
line 124, in __init__
self.handler = saxHandlerClass(keepAllWs)
File
"/usr/lib/python1.5/site-packages/xml/dom/ext/reader/HtmlSax.py",
line 39, in __init__
self._rootNode =
self._ownerDoc.createDocumentFragment()
AttributeError: 'int' object has no attribute
'createDocumentFragment'
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=106473&aid=404272&group_id=6473