1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-04 12:58:17 +03:00

Fix #124907 by simply backporting the same fix as for the XML parser

* HTMLparser.c: Fix #124907 by simply backporting the same
  fix as for the XML parser
* result/HTML/doc3.htm.err: change to ID detecting modified one
  test result.
Daniel
This commit is contained in:
Daniel Veillard 2003-10-28 22:04:45 +00:00
parent 9ba8e389a2
commit 652f9aa966
3 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,10 @@
Tue Oct 28 23:02:29 CET 2003 Daniel Veillard <daniel@veillard.com>
* HTMLparser.c: Fix #124907 by simply backporting the same
fix as for the XML parser
* result/HTML/doc3.htm.err: change to ID detecting modified one
test result.
Tue Oct 28 22:28:50 CET 2003 Daniel Veillard <daniel@veillard.com>
* parser.c include/libxml/parser.h: included a new function

View File

@ -231,9 +231,13 @@ htmlnamePop(htmlParserCtxtPtr ctxt)
#define CUR_PTR ctxt->input->cur
#define SHRINK xmlParserInputShrink(ctxt->input)
#define SHRINK if ((ctxt->input->cur - ctxt->input->base > 2 * INPUT_CHUNK) && \
(ctxt->input->end - ctxt->input->cur < 2 * INPUT_CHUNK)) \
xmlParserInputShrink(ctxt->input)
#define GROW xmlParserInputGrow(ctxt->input, INPUT_CHUNK)
#define GROW if ((ctxt->progressive == 0) && \
(ctxt->input->end - ctxt->input->cur < INPUT_CHUNK)) \
xmlParserInputGrow(ctxt->input, INPUT_CHUNK)
#define CURRENT ((int) (*ctxt->input->cur))

View File

@ -46,7 +46,6 @@ om/ad_static.asp?pid=2097&sid=1881&asid=7708"></a></IFRAME></CENTER></LI></FONT>
./test/HTML/doc3.htm:820: HTML parser error : Unexpected end tag : noscript
</A></A></B><B></NOSCRIPT></B><B><!-- END GoTo.com Search Box --></B
^
./test/HTML/doc3.htm:0: element input: validity error : ID submit already defined
./test/HTML/doc3.htm:826: HTML parser error : Opening and ending tag mismatch: form and center
</FORM><!-- Pricewatch Search Box --><A
^