W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2000

Bug tydiing <A HREF...></A>

From: FITZ Michael <michael.fitz@creditanstalt.co.at>
Date: Wed, 31 May 2000 14:31:15 -0400 (EDT)
Message-ID: <5F7D899A6D77D311AA8D0008C7E65D8709580B@v10.server.lan.at>
To: "'html-tidy@w3.org'" <html-tidy@w3.org>

This is the original:

<A HREF="#BookI1"><DT>Item1<DD>This is Item1</A>
<A HREF="#BookI2"><DT>Item2<DD>This is Item2</A>

This is what Tidy says:

line 11 column 1 - Warning: missing <dd>
line 11 column 19 - Warning: missing </a> before <dt>
line 11 column 45 - Warning: discarding unexpected </a>
line 12 column 19 - Warning: missing </a> before <dt>
line 12 column 45 - Warning: discarding unexpected </a>
line 17 column 15 - Warning: missing </a> before <p>
line 19 column 13 - Warning: discarding unexpected </a>

This is was Tidy produces:

<DD><A HREF="#BookI1"></A></DD>


<DD>This is Item1 <A HREF="#BookI2"></A></DD>


<DD>This is Item2</DD>

I really wanted the complete DT/DD-Pair to be a link... The same is true if
two (or more paragraphs <P>) are contained within one link. I think that
tidy should not bother about the contents of a link (<SPAN>, <I> etc are yet
accepted) and accept allthing within. Only when missing the correspondig
</A>-Tag tidy should report an error, and when a very long link is included
it should only report a warning (best if you trigger size and occurence of
this warning with an option - eg. "href-length: number" where
"href-length:0" disables this warning, other numbers set the upper
threshhold before warnings).

And - because I'm just writing to you - a nice-to-have:
I prefer to have no empty line between DT/DL (before DT it's ok), so I can
see better the corresponding pairs in long DLs. Can you add a option to
suppress this? Or (best-to-have :-)) options to control the insertion of
linefeeds before/after each arbitray tag. The above example I would manually
tidy to:


<A HREF="#BookI1">
<DD>This is Item1</DD>

<A HREF="#BookI2">
<DD>This is Item2</DD>


and really would like to let Tidy do this for me...

BTM: I have the latest Version "released on 30th April 2000" running on
Win-NT together with NoteTab 4.82.

Thanks in advance for your efforts!


Ing. Michael Fitz
CA-DSI heureka!
Tel. 71730-55957
Received on Tuesday, 20 June 2000 13:07:13 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:48 UTC