diff options
author | Arnold Hendriks <a.hendriks@b-lex.nl> | 2013-11-29 14:12:12 +0800 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2013-11-29 14:12:12 +0800 |
commit | 826bc320206f70fccd2941a77d363e95e8076898 (patch) | |
tree | 7364869cc5b92414f07575257d23bd81f7b23ff0 /xmllint.c | |
parent | a1313a6f8c48cc27b02f65aca6b04e6cd59d939a (diff) | |
download | libxml2-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |