[XML-SIG] 4DOM HTML erroneously using NS methods
Uche Ogbuji
uche.ogbuji@fourthought.com
Wed, 16 Jan 2002 17:51:07 -0700
In dom.ext.reader.Sgmlop.py and other places, The NS methods are erroneously
being used for HTML DOM manipulation. This breaks apps that are expecting the
resulting nodes to have the mandated HTML DOM behavior (i.e.
uppercase-normalized tagnames and the like). In fact:
$ grep NS\( dom/html/*
grep: dom/html/CVS: Is a directory
dom/html/HTMLDocument.py: def createElementNS(self, namespace, qname):
dom/html/HTMLElement.py: self.attributes.setNamedItemNS(clone)
$
These shouyldn't even be defined for HTML interfaces.
The problem is that it would be a bit of a chore to carefully change things
back so that the XML modules strictly use NS methods, and the HTML modules the
non-NS modules. It would probably be easiest for whomever made the changes to
undo them.
--
Uche Ogbuji Principal Consultant
uche.ogbuji@fourthought.com +1 303 583 9900 x 101
Fourthought, Inc. http://Fourthought.com
4735 East Walnut St, Boulder, CO 80301-2537, USA
XML strategy, XML tools (http://4Suite.org), knowledge management