summaryrefslogtreecommitdiff
path: root/testHTML.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2003-09-26 12:47:50 +0000
committerDaniel Veillard <veillard@src.gnome.org>2003-09-26 12:47:50 +0000
commit9475a352bdd1f15b1e0c53472a74938f9d5dc04e (patch)
treea29cfb017b1ed70d637fed469b6563ed06dc941c /testHTML.c
parent60942def6a83d48469d1d9fb41564b8450a939b4 (diff)
downloadlibxml2-9475a352bdd1f15b1e0c53472a74938f9d5dc04e.tar.gz
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
Diffstat (limited to 'testHTML.c')
-rw-r--r--testHTML.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/testHTML.c b/testHTML.c
index f48612d8..81233248 100644
--- a/testHTML.c
+++ b/testHTML.c
@@ -46,6 +46,7 @@ static int repeat = 0;
static int noout = 0;
static int push = 0;
static char *encoding = NULL;
+static int options = 0;
xmlSAXHandler emptySAXHandlerStruct = {
NULL, /* internalSubset */
@@ -725,7 +726,7 @@ parseAndPrintFile(char *filename) {
fclose(f);
}
} else {
- doc = htmlParseFile(filename, NULL);
+ doc = htmlReadFile(filename, NULL, options);
}
if (doc == NULL) {
xmlGenericError(xmlGenericErrorContext,