summaryrefslogtreecommitdiff
path: root/xmllint.c
diff options
context:
space:
mode:
authorArnold Hendriks <a.hendriks@b-lex.nl>2013-11-29 14:12:12 +0800
committerDaniel Veillard <veillard@redhat.com>2013-11-29 14:12:12 +0800
commit826bc320206f70fccd2941a77d363e95e8076898 (patch)
tree7364869cc5b92414f07575257d23bd81f7b23ff0 /xmllint.c
parenta1313a6f8c48cc27b02f65aca6b04e6cd59d939a (diff)
downloadlibxml2-826bc320206f70fccd2941a77d363e95e8076898.tar.gz
Fix HTML push parser to accept HTML_PARSE_NODEFDTD
For https://bugzilla.gnome.org/show_bug.cgi?id=719515 fixes htmlParseTryOrFinish to interpret HTML_PARSE_NODEFDTD, and updates xmllint to actually pass --nodefdtd to the push version of the HTML parser
Diffstat (limited to 'xmllint.c')
-rw-r--r--xmllint.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmllint.c b/xmllint.c
index d69722c4..ebd36ab0 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -2206,6 +2206,7 @@ static void parseAndPrintFile(char *filename, xmlParserCtxtPtr rectxt) {
if (res > 0) {
ctxt = htmlCreatePushParserCtxt(NULL, NULL,
chars, res, filename, XML_CHAR_ENCODING_NONE);
+ xmlCtxtUseOptions(ctxt, options);
while ((res = fread(chars, 1, pushsize, f)) > 0) {
htmlParseChunk(ctxt, chars, res, 0);
}