mirror of
https://github.com/darlinghq/darling-libxml2.git
synced 2025-01-10 14:11:54 +00:00
applied two parsing fixes from James Bursa Daniel
* HTMLparser.c: applied two parsing fixes from James Bursa Daniel
This commit is contained in:
parent
16ed597a93
commit
c59d826ef9
@ -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>
|
Thu Nov 20 19:20:46 CET 2003 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* doc/examples/*: added two xmlReader examples
|
* doc/examples/*: added two xmlReader examples
|
||||||
|
@ -2880,7 +2880,7 @@ htmlParseCharRef(htmlParserCtxtPtr ctxt) {
|
|||||||
int val = 0;
|
int val = 0;
|
||||||
|
|
||||||
if ((CUR == '&') && (NXT(1) == '#') &&
|
if ((CUR == '&') && (NXT(1) == '#') &&
|
||||||
(NXT(2) == 'x')) {
|
((NXT(2) == 'x') || NXT(2) == 'X')) {
|
||||||
SKIP(3);
|
SKIP(3);
|
||||||
while (CUR != ';') {
|
while (CUR != ';') {
|
||||||
if ((CUR >= '0') && (CUR <= '9'))
|
if ((CUR >= '0') && (CUR <= '9'))
|
||||||
@ -3253,6 +3253,8 @@ htmlParseStartTag(htmlParserCtxtPtr ctxt) {
|
|||||||
htmlParseErr(ctxt, XML_HTML_STRUCURE_ERROR,
|
htmlParseErr(ctxt, XML_HTML_STRUCURE_ERROR,
|
||||||
"htmlParseStartTag: misplaced <body> tag\n",
|
"htmlParseStartTag: misplaced <body> tag\n",
|
||||||
name, NULL);
|
name, NULL);
|
||||||
|
while ((IS_CHAR_CH(CUR)) && (CUR != '>'))
|
||||||
|
NEXT;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user