mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
small enhancement to dtd handling of (a?)+ (bug 142487)
* parser.c: small enhancement to dtd handling of (a?)+ (bug 142487)
This commit is contained in:
5
parser.c
5
parser.c
@@ -4822,7 +4822,10 @@ xmlParseElementChildrenContentDecl (xmlParserCtxtPtr ctxt, int inputchk) {
|
||||
if (ret != NULL) {
|
||||
int found = 0;
|
||||
|
||||
ret->ocur = XML_ELEMENT_CONTENT_PLUS;
|
||||
if (ret->ocur == XML_ELEMENT_CONTENT_OPT)
|
||||
ret->ocur == XML_ELEMENT_CONTENT_MULT;
|
||||
else
|
||||
ret->ocur = XML_ELEMENT_CONTENT_PLUS;
|
||||
/*
|
||||
* Some normalization:
|
||||
* (a | b*)+ == (a | b)*
|
||||
|
Reference in New Issue
Block a user