Re: HTML 4.01 strict parsed incorrectly

On Tue, 19 Oct 2004 02:08:26 -0700
carbonated beverage <ramune@net-ronin.org> wrote:

> 
> The document at:
> http://net-ronin.org/~ramune/lart.html
> 
> Validates according to osgmlnorm and http://validator.w3.org
> 
> However, Amaya 8.5-1 from the Debian/testing package (sparc32 userland)
> gives me:
> 
> Blue lines are links activated by a double (or a single) click
> *** Errors/warnings in http://net-ronin.org/~ramune/lart.html
>    line 17, char 0: Warning - unknown tag <P/Hello,>
>    line 17, char 1: Syntax error
>    line 202, char 1: Syntax error
>    line 216, char 124: Invalid attribute "border" for the document profile
>    line 219, char 1: Syntax error

Amaya doesn't try to be a complete SGML parser.
The goal is to help authors to create good (X)HTML, MahML and SVG
markup.

> Line 17 is due to SGML short tag notation:
> <P/Hello,/
> 
> Line 202 is due to the omission of the TAGC on line 201:
> 201: <P CLASS="kitty"><IMG SRC="wai.png" ALT="Grey ball of cute fur."></P
> 202: <P>
> 
> Line 216, I have no idea.  It doesn't have 124 characters or a border
> attribute in the doc.

This error is not detected by my current version.

> Line 219, I'm thinking is for line 220 or 221 instead, due to the omission
> of the TAGC:
> 219:     </p>
> 220: </BODY
> 221: </HTML>

The > could appear line 221. The omission is detected when parsing <
at the line 221.

> Also, the kitty pic isn't centered, despite the <STYLE> tag. :-)

But the CSS  style says 	P.kitty { text-align: right }
> 
> -- DN
> Daniel
> 
> 


Regards
     Irene.
-----
Irène Vatton                     INRIA Rhône-Alpes
INRIA                               ZIRST
e-mail: Irene.Vatton@inria.fr       655 avenue de l'Europe
Tel.: +33 4 76 61 53 61             Montbonnot
Fax:  +33 4 76 61 52 07             38334 Saint Ismier Cedex - France

Received on Wednesday, 20 October 2004 12:44:04 UTC