W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 1999

Re: Tidy (oct22) failed to parse comments

From: Dave Raggett <dsr@w3.org>
Date: Sat, 20 Nov 1999 15:31:14 +0000 (GMT Standard Time)
To: Yudong Yang <yangyudong@hotmail.com>
cc: html-tidy@w3.org
Message-ID: <Pine.WNT.4.10.9911201524050.312-100000@OEMCOMPUTER>
On Thu, 18 Nov 1999, Yudong Yang wrote:

> I'm using tidy as a HTML parser for my program. There are some
> cases that tidy will make mistakes on comment contains a lot of
> '-'(although this is not good according to HTML4.0 ).  You could
> find the case in http://cn.yahoo.com/ I've made a fix for this
> problem.

Tidy wasn't recovering effectively after detecting malformed
comments.

SGML/XML says:

  good     <!---->
  bad      <!----->
  bad      <!------>
  bad      <!------->
  good     <!-------->

weird isn't it!

I will adjust the parser to trim trailing hyphens to the
nearest legal number.


Regards,

-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
tel/fax: +44 122 578 3011 (or 2521) +44 385 320 444 (mobile)
World Wide Web Consortium (on assignment from HP Labs)
Received on Saturday, 20 November 1999 10:31:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:42 GMT