mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-28 00:21:53 +03:00
- HTMLparser.c: Closed bug #54891
- result/HTML/cf_128.html* test/HTML/cf_128.html: added the test to the suite forgot to commit this one yesterday - encoding.h hash.c nanoftp.h parser.h tree.h uri.h xlink.h xpointer.c: applied a documentation patch from LotR and filled in a few missing descriptions Daniel
This commit is contained in:
7
valid.c
7
valid.c
@ -4577,6 +4577,7 @@ xmlValidGetPotentialChildren(xmlElementContent *ctree, const xmlChar **list,
|
||||
int
|
||||
xmlValidGetValidElements(xmlNode *prev, xmlNode *next, const xmlChar **list,
|
||||
int max) {
|
||||
xmlValidCtxt vctxt;
|
||||
int nb_valid_elements = 0;
|
||||
const xmlChar *elements[256];
|
||||
int nb_elements = 0, i;
|
||||
@ -4592,6 +4593,10 @@ xmlValidGetValidElements(xmlNode *prev, xmlNode *next, const xmlChar **list,
|
||||
|
||||
xmlElement *element_desc;
|
||||
|
||||
vctxt.userData = NULL;
|
||||
vctxt.error = NULL;
|
||||
vctxt.warning = NULL;
|
||||
|
||||
if (prev == NULL && next == NULL)
|
||||
return(-1);
|
||||
|
||||
@ -4644,7 +4649,7 @@ xmlValidGetValidElements(xmlNode *prev, xmlNode *next, const xmlChar **list,
|
||||
|
||||
for (i = 0;i < nb_elements;i++) {
|
||||
test_node->name = elements[i];
|
||||
if (xmlValidateOneElement(NULL, parent->doc, parent)) {
|
||||
if (xmlValidateOneElement(&vctxt, parent->doc, parent)) {
|
||||
int j;
|
||||
|
||||
for (j = 0; j < nb_valid_elements;j++)
|
||||
|
Reference in New Issue
Block a user