On Sun, Mar 20, 2005 at 01:51:25PM -0800, Bill Moseley wrote:
> On Sun, Mar 20, 2005 at 06:02:26PM +0300, [EMAIL PROTECTED] wrote:
> > Hello libwww,
> > 
> > using it to parse html-forms etc...
> > noticed, that it recognizes strange comment
> > like <!--> as starting of the comment,
> > not like the whole empty comment, as IE.
> 
> Doesn't seem like that's a valid comment.
> 
> http://www.w3.org/TR/WD-html40-970917/intro/sgmltut.html#h-3.1.4

Well, the HTML:Parser perldoc says:

  HTML::Parser is not a generic SGML parser. We have tried to make it
  able to deal with the HTML that is actually "out there", and it normally
  parses as closely as possible to the way the popular web browsers do it
  instead of strictly following one of the many HTML specifications from
  W3C. Where there is disagreement, there is often an option that you can
  enable to get the official behaviour.

But do all versions of IE parse this the same way?
What do other popular user agents do?

-- 
Reinier

Reply via email to