1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

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

@@ -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;
}
}