added the same htmlRead APIs than their XML counterparts new parser
* HTMLparser.c testHTML.c xmllint.c include/libxml/HTMLparser.h:
added the same htmlRead APIs than their XML counterparts
* include/libxml/parser.h: new parser options, not yet implemented,
added an options field to the context.
* tree.c: patch from Shaun McCance to fix bug #123238 when ]]>
is found within a cdata section.
* result/noent/cdata2 result/cdata2 result/cdata2.rdr
result/cdata2.sax test/cdata2: add one more cdata test
Daniel
diff --git a/testHTML.c b/testHTML.c
index f48612d..8123324 100644
--- a/testHTML.c
+++ b/testHTML.c
@@ -46,6 +46,7 @@
static int noout = 0;
static int push = 0;
static char *encoding = NULL;
+static int options = 0;
xmlSAXHandler emptySAXHandlerStruct = {
NULL, /* internalSubset */
@@ -725,7 +726,7 @@
fclose(f);
}
} else {
- doc = htmlParseFile(filename, NULL);
+ doc = htmlReadFile(filename, NULL, options);
}
if (doc == NULL) {
xmlGenericError(xmlGenericErrorContext,