1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

- valid.c: removed a state explosion exhibited by RSS

- test/valid/rss.xml result/valid/rss.xml*: added the testcase
  from bug #51872
Daniel
This commit is contained in:
Daniel Veillard
2001-04-20 13:48:21 +00:00
parent dab4cb37d8
commit 8534905f62
5 changed files with 369 additions and 0 deletions

12
valid.c
View File

@ -3654,6 +3654,18 @@ cont:
}
break;
case XML_ELEMENT_CONTENT_OR:
/*
* Small optimization.
*/
if (CONT->c1->type == XML_ELEMENT_CONTENT_ELEMENT) {
if ((NODE == NULL) ||
(!xmlStrEqual(NODE->name, CONT->c1->name))) {
DEPTH++;
CONT = CONT->c2;
goto cont;
}
}
/*
* save the second branch 'or' branch
*/