mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
regenerated might fix includes problems with the Ipv6 support on solaris
* NEWS doc/*: regenerated * nanoftp.c nanohttp.c: might fix includes problems with the Ipv6 support on solaris * tree.c: patch from Markus Keim about xmlHasNsProp() on attributes defined as #IMPLIED Daniel
This commit is contained in:
12
tree.c
12
tree.c
@ -5560,7 +5560,9 @@ xmlHasProp(xmlNodePtr node, const xmlChar *name) {
|
||||
attrDecl = xmlGetDtdAttrDesc(doc->intSubset, node->name, name);
|
||||
if ((attrDecl == NULL) && (doc->extSubset != NULL))
|
||||
attrDecl = xmlGetDtdAttrDesc(doc->extSubset, node->name, name);
|
||||
if (attrDecl != NULL)
|
||||
if ((attrDecl != NULL) && (attrDecl->defaultValue != NULL))
|
||||
/* return attribute declaration only if a default value is given
|
||||
(that includes #FIXED declarations) */
|
||||
return((xmlAttrPtr) attrDecl);
|
||||
}
|
||||
}
|
||||
@ -5701,7 +5703,9 @@ xmlGetProp(xmlNodePtr node, const xmlChar *name) {
|
||||
attrDecl = xmlGetDtdAttrDesc(doc->intSubset, node->name, name);
|
||||
if ((attrDecl == NULL) && (doc->extSubset != NULL))
|
||||
attrDecl = xmlGetDtdAttrDesc(doc->extSubset, node->name, name);
|
||||
if (attrDecl != NULL)
|
||||
if ((attrDecl != NULL) && (attrDecl->defaultValue != NULL))
|
||||
/* return attribute declaration only if a default value is given
|
||||
(that includes #FIXED declarations) */
|
||||
return(xmlStrdup(attrDecl->defaultValue));
|
||||
}
|
||||
}
|
||||
@ -5756,7 +5760,9 @@ xmlGetNoNsProp(xmlNodePtr node, const xmlChar *name) {
|
||||
attrDecl = xmlGetDtdAttrDesc(doc->intSubset, node->name, name);
|
||||
if ((attrDecl == NULL) && (doc->extSubset != NULL))
|
||||
attrDecl = xmlGetDtdAttrDesc(doc->extSubset, node->name, name);
|
||||
if (attrDecl != NULL)
|
||||
if ((attrDecl != NULL) && (attrDecl->defaultValue != NULL))
|
||||
/* return attribute declaration only if a default value is given
|
||||
(that includes #FIXED declarations) */
|
||||
return(xmlStrdup(attrDecl->defaultValue));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user