applied two parsing fixes from James Bursa Daniel

* HTMLparser.c: applied two parsing fixes from James Bursa
Daniel
This commit is contained in:
Daniel Veillard 2003-11-20 21:59:12 +00:00
parent 16ed597a93
commit c59d826ef9
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Thu Nov 20 22:58:00 CET 2003 Daniel Veillard <daniel@veillard.com>
* HTMLparser.c: applied two parsing fixes from James Bursa
Thu Nov 20 19:20:46 CET 2003 Daniel Veillard <daniel@veillard.com>
* doc/examples/*: added two xmlReader examples

View File

@ -2880,7 +2880,7 @@ htmlParseCharRef(htmlParserCtxtPtr ctxt) {
int val = 0;
if ((CUR == '&') && (NXT(1) == '#') &&
(NXT(2) == 'x')) {
((NXT(2) == 'x') || NXT(2) == 'X')) {
SKIP(3);
while (CUR != ';') {
if ((CUR >= '0') && (CUR <= '9'))
@ -3253,6 +3253,8 @@ htmlParseStartTag(htmlParserCtxtPtr ctxt) {
htmlParseErr(ctxt, XML_HTML_STRUCURE_ERROR,
"htmlParseStartTag: misplaced <body> tag\n",
name, NULL);
while ((IS_CHAR_CH(CUR)) && (CUR != '>'))
NEXT;
return;
}
}