Comments inside declarations are delimited by '--' similar to the way C
comments are delimited by '/*' and '*/'.  Any one declaration can have many
comments inside it.
--
Mac :})
----- Original Message -----
From: "John Beaman" <[EMAIL PROTECTED]>
To: "la mouton" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, March 07, 2000 14:47
Subject: Re: patch for HTML::Parser 3.06 to fix declaration comment handling


> Why not just look for  "-->" to end it?
> -JB
>
> la mouton wrote:
> >
> > This fixes a bug in declaration handling.  HTML::Parser supports
comments
> > within declarations (<! foo -- comment -->) incorrectly.  Once we
trigger
> > a comment "--" we look for the next instance of "--" to denote the end
of
> > the comment.  I put in a check for the end of tag character '>',
otherwise
> > we dont get out of comment mode before the appearance of another "--"
> > marker.

Reply via email to