W3C home > Mailing lists > Public > www-amaya@w3.org > October to December 1999

Re: Out-of-order <A NAME="Top"> confuses Amaya

From: <Irene.Vatton@inrialpes.fr>
Date: Mon, 20 Dec 1999 14:18:14 +0100
Message-Id: <199912201318.OAA17659@tahiti.inrialpes.fr>
To: bglbv@my-deja.com
cc: www-amaya@w3.org

Hi,

Amaya detects that the anchor <A NAME="Top"> is misplaced. That's true,
but I agree the result is surprising. In fact Amaya tries to apply the 
same fix as it does for misplaced <font> elements.
What are you expecting: Amaya ignore the invalid anchor? Amaya creates an
empty anchor as the first element of the body? what else?

There is no rule to interpret invalid HTML. I guess the best is to have
a well formed document.

In-reply-to: Your message of Sat, 18 Dec 1999 23:07:17 -0500."
             <19991219040608.1527.qmail@my-deja.com> 
> I saw the following structure in http://www.indigo.ie/egt/ :
> 
> <HTML>
> <A NAME="Top">
> <HEAD><!-- usual TITLE and HTTP-EQUIV=Content-Type --></HEAD>
> <BODY>
> <IMG SRC="header.gif"><BR>
> <H1>Index</H1>
> <IMG SRC="somebullet.gif"><A HREF="some.url">Label</A>
> <!-- More stuff -->
> </BODY>
> </HTML>
> 
> (unless this was the result of some garbling by proxies along the way).
> It's godawful HTML, but still it would be nice it Amaya could handle
> this sort of thing as gracefully as possible.
> 
> What Amaya currently parses this into is somewhat surprising.
> As far as I can make it from the structure view (which is garbled:
> a bug), it's something like:
> 
> <BODY>
>   <A NAME="Top">
>     <IMG SRC="header.gif"><BR>
>   </A>
>   <H1><A NAME="Top">Index</A></H1>
>   <A NAME="Top">
>     <IMG SRC="somebullet.gif">
>     <A NAME="Top" HREF="some.url">Label</A>
>     <!-- More stuff until the next HR element -->
>   </A>
>   <!-- More stuff with plenty of A NAME="Top" -->
> </BODY>
> 
> And in the formatted view there is a line break just after the "L" in "Label".
> Yes, in the middle of a word: that's what alerted me to it all.
> 
> Can anyone reproduce this? (I haven't tried with a binary Amaya distribution.)
> Fix the various bugs involved?
> 
> 

  Irene.
Received on Monday, 20 December 1999 08:18:19 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:21 UTC