la mouton <[EMAIL PROTECTED]> writes:

> yes, this breaks on the front page of http://www.kozmo.com where intended
> comments such as "<! row1 -->" get parsed incorrectly by HTML::Parser.
> HTML::Parser interprets HTML text between <! row1 --> and <! row2 --> as
> one huge declaration.  THis is because of HTML::Parser is looking only for
> the matching "--" and not the end of tag character '>'.

It has to be "<!row1 -->" for HTML::Parser to go into declaration mode
(no space after "<!"), and that is exactly what http://www.kozmo.com
is using.  My guess is that "normal" browsers do not even try to
recognise declarations at and that they parse this as a plain start
tag.  It will then just simply ignore the unknown start tag with name
"!row1" and the boolean attribute called "--".

Regards,
Gisle

Reply via email to