mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-04 08:02:34 +03:00
Dodji pointed out a bug in xmlGetNodePath() applied patch from Albert Chin
* tree.c: Dodji pointed out a bug in xmlGetNodePath() * xmlcatalog.c: applied patch from Albert Chin to add a --no-super-update option to xmlcatalog see #145461 and another patch also from Albert Chin to not crash on -sgml --del without args see #145462 * Makefile.am: applied another patch from Albert Chin to fix a problem with diff on Solaris #145511 * xmlstring.c: fix xmlCheckUTF8() according to the suggestion in bug #148115 * python/libxml.py: apply fix from Marc-Antoine Parent about the errors in libxml(2).py on the node wrapper #135547 Daniel
This commit is contained in:
@ -488,19 +488,19 @@ class xmlCoreBreadthFirstItertor:
|
||||
#
|
||||
def nodeWrap(o):
|
||||
# TODO try to cast to the most appropriate node class
|
||||
name = libxml2mod.name(o)
|
||||
name = libxml2mod.type(o)
|
||||
if name == "element" or name == "text":
|
||||
return xmlNode(_obj=o)
|
||||
if name == "attribute":
|
||||
return xmlAttr(_obj=o)
|
||||
if name[0:8] == "document":
|
||||
return xmlDoc(_obj=o)
|
||||
if name[0:8] == "namespace":
|
||||
if name == "namespace":
|
||||
return xmlNs(_obj=o)
|
||||
if name == "elem_decl":
|
||||
return xmlElement(_obj=o)
|
||||
if name == "attribute_decl":
|
||||
return xmlAtribute(_obj=o)
|
||||
return xmlAttribute(_obj=o)
|
||||
if name == "entity_decl":
|
||||
return xmlEntity(_obj=o)
|
||||
if name == "dtd":
|
||||
|
Reference in New Issue
Block a user