Prevent storeAtts() from being called twice for an empty element when
the endElementHandler is set, but not the startElementHandler.
This commit is contained in:
parent
d6df5f356b
commit
c56f444ab0
@ -2123,7 +2123,7 @@ doContent(XML_Parser parser,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case XML_TOK_EMPTY_ELEMENT_WITH_ATTS:
|
case XML_TOK_EMPTY_ELEMENT_WITH_ATTS:
|
||||||
if (!startElementHandler) {
|
if (!startElementHandler && !endElementHandler) {
|
||||||
enum XML_Error result = storeAtts(parser, enc, s, 0, 0);
|
enum XML_Error result = storeAtts(parser, enc, s, 0, 0);
|
||||||
if (result)
|
if (result)
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user