mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-27 14:03:36 +03:00
apparently it's okay to forget the semicolumn after entity refs in HTML,
* HTMLparser.c: apparently it's okay to forget the semicolumn after entity refs in HTML, fixing char refs parsing accordingly based on T. Manske patch, this should fix #517653 Daniel svn path=/trunk/; revision=3726
This commit is contained in:
parent
fa75097343
commit
36de63e71d
@ -1,3 +1,9 @@
|
||||
Thu Apr 3 11:02:02 CEST 2008 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* HTMLparser.c: apparently it's okay to forget the semicolumn after
|
||||
entity refs in HTML, fixing char refs parsing accordingly based on
|
||||
T. Manske patch, this should fix #517653
|
||||
|
||||
Thu Apr 3 09:30:29 CEST 2008 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* error.c: avoid a scary realloc() loop should fix #520383
|
||||
|
@ -3115,9 +3115,9 @@ htmlParseCharRef(htmlParserCtxtPtr ctxt) {
|
||||
val = val * 16 + (CUR - 'A') + 10;
|
||||
else {
|
||||
htmlParseErr(ctxt, XML_ERR_INVALID_HEX_CHARREF,
|
||||
"htmlParseCharRef: invalid hexadecimal value\n",
|
||||
"htmlParseCharRef: missing semicolumn\n",
|
||||
NULL, NULL);
|
||||
return(0);
|
||||
break;
|
||||
}
|
||||
NEXT;
|
||||
}
|
||||
@ -3130,9 +3130,9 @@ htmlParseCharRef(htmlParserCtxtPtr ctxt) {
|
||||
val = val * 10 + (CUR - '0');
|
||||
else {
|
||||
htmlParseErr(ctxt, XML_ERR_INVALID_DEC_CHARREF,
|
||||
"htmlParseCharRef: invalid decimal value\n",
|
||||
"htmlParseCharRef: missing semicolumn\n",
|
||||
NULL, NULL);
|
||||
return(0);
|
||||
break;
|
||||
}
|
||||
NEXT;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user