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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user