- 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
diff --git a/valid.c b/valid.c
index 81df778..a05a83c 100644
--- a/valid.c
+++ b/valid.c
@@ -4577,6 +4577,7 @@
 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 @@
     
     xmlElement *element_desc;
 
+    vctxt.userData = NULL;
+    vctxt.error = NULL;
+    vctxt.warning = NULL;
+
     if (prev == NULL && next == NULL)
         return(-1);
 
@@ -4644,7 +4649,7 @@
     
     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++)