- 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/HTMLparser.c b/HTMLparser.c
index 5e79464..d2c1e6c 100644
--- a/HTMLparser.c
+++ b/HTMLparser.c
@@ -739,7 +739,7 @@
#endif
} else if (info->endTag == 3) {
#ifdef DEBUG
- xmlGenericError(xmlGenericErrorContext,"End of tag %s: expecting %s\n", name, ctxt->name);
+ xmlGenericError(xmlGenericErrorContext,"End of tag %s: expecting %s\n", newtag, ctxt->name);
#endif
if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL))
ctxt->sax->error(ctxt->userData,
@@ -1383,7 +1383,7 @@
htmlEntityValueLookup(unsigned int value) {
unsigned int i;
#ifdef DEBUG
- int lv = 0;
+ unsigned int lv = 0;
#endif
for (i = 0;i < (sizeof(html40EntitiesTable)/
@@ -4168,6 +4168,15 @@
#endif
break;
}
+ if (in->cur[1] == '/') {
+ ctxt->instate = XML_PARSER_END_TAG;
+ ctxt->checkIndex = 0;
+#ifdef DEBUG_PUSH
+ xmlGenericError(xmlGenericErrorContext,
+ "HPP: entering END_TAG\n");
+#endif
+ break;
+ }
if ((!terminate) &&
(htmlParseLookupSequence(ctxt, '>', 0, 0) < 0))
goto done;