mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
3 hours of debug, this was hell:
- SAX.c parser.c xpath.c: generating IDs when not validating from an external parsed entity was poisoning the ID has table with removed values. This was killing XSLT on the KDE help browser. Daniel
This commit is contained in:
5
xpath.c
5
xpath.c
@ -3755,7 +3755,10 @@ xmlXPathNextNamespace(xmlXPathParserContextPtr ctxt, xmlNodePtr cur) {
|
||||
*/
|
||||
xmlNodePtr
|
||||
xmlXPathNextAttribute(xmlXPathParserContextPtr ctxt, xmlNodePtr cur) {
|
||||
if (ctxt->context->node->type != XML_ELEMENT_NODE) return(NULL);
|
||||
if (ctxt->context->node == NULL)
|
||||
return(NULL);
|
||||
if (ctxt->context->node->type != XML_ELEMENT_NODE)
|
||||
return(NULL);
|
||||
if (cur == NULL) {
|
||||
if (ctxt->context->node == (xmlNodePtr) ctxt->context->doc)
|
||||
return(NULL);
|
||||
|
Reference in New Issue
Block a user