1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-01-26 10:03:34 +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:
Daniel Veillard 2008-04-03 09:05:05 +00:00
parent fa75097343
commit 36de63e71d
2 changed files with 10 additions and 4 deletions

View File

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

View File

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