W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2001

Re: Question about pre tag transformation

From: 岡本 浩之 <hokamoto@mse.mei.co.jp>
Date: Mon, 05 Mar 2001 16:33:49 +0900
Message-ID: <3AA3415D.42F19F81@mse.mei.co.jp>
To: "Richard A. O'Keefe" <ok@atlas.otago.ac.nz>
CC: html-tidy@w3.org
Hello, Mr.Richard.

"Richard A. O'Keefe" wrote:

> I note that http://www.w3.org/TR/html401/struct/Links.html#h-12.2
> says quite explicitly:
>
>     Authors may create an A element that specifies no anchors,
>     i.e. that doesn't specify href, name, or id.  Values for
>     these attributes may be set at a later time through scripts.
>
> This means that deleting bare <A> tags is definitely a bug.
>
> What can you do about it?
>
> In parser.c, find the function ParseInline().
>
> Find (near the top of that function), the statements
>
>     if (element->tag == tag_a)
>     {
>         if (element->attributes == null)
>         {
>             ReportWarning(lexer, element->parent, element, DISCARDING_UNEXPECTE
>             DiscardElement(element);
>             return;
>         }
>     }
>
> Delete those statements.  I have tested this change.

I use tidy.exe downloaded at http://www.w3.org/People/Raggett/tidy/.
So, I don't have a Makefile for building HTML Tidy for Win98.

If you have the Tidy chanenged above for Windows 98, would you mind
if you give it to me ?
Received on Monday, 5 March 2001 02:29:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:45 GMT