diff --git a/HTMLparser.c b/HTMLparser.c
index be99b936..9d638289 100644
--- a/HTMLparser.c
+++ b/HTMLparser.c
@@ -462,10 +462,6 @@ htmlCurrentChar(xmlParserCtxtPtr ctxt, int *len) {
if (val < 0x80)
goto encoding_error;
}
- if (!IS_CHAR(val)) {
- htmlParseErrInt(ctxt, XML_ERR_INVALID_CHAR,
- "Char 0x%X out of allowed range\n", val);
- }
return(val);
}
@@ -3414,12 +3410,8 @@ htmlParseComment(htmlParserCtxtPtr ctxt, int bogus) {
}
buf = tmp;
}
- if (IS_CHAR(cur)) {
- COPY_BUF(buf,len,cur);
- } else {
- htmlParseErrInt(ctxt, XML_ERR_INVALID_CHAR,
- "Invalid char in comment 0x%X\n", cur);
- }
+
+ COPY_BUF(buf,len,cur);
if (len > maxLength) {
htmlParseErr(ctxt, XML_ERR_COMMENT_NOT_FINISHED,
"comment too long", NULL, NULL);
diff --git a/result/HTML/758606.html b/result/HTML/758606.html
index ee62ed7b..d5f2457b 100644
--- a/result/HTML/758606.html
+++ b/result/HTML/758606.html
@@ -1,3 +1,3 @@
-
diff --git a/result/HTML/758606.html.err b/result/HTML/758606.html.err
deleted file mode 100644
index 523b8b8b..00000000
--- a/result/HTML/758606.html.err
+++ /dev/null
@@ -1,3 +0,0 @@
-./test/HTML/758606.html:1: HTML parser error : Invalid char in comment 0xC
-
diff --git a/result/HTML/758606_2.html.err b/result/HTML/758606_2.html.err
deleted file mode 100644
index 104a5e43..00000000
--- a/result/HTML/758606_2.html.err
+++ /dev/null
@@ -1,3 +0,0 @@
-./test/HTML/758606_2.html:1: HTML parser error : Invalid char in comment 0xC
-