Re: Question about pre tag transformation

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 UTC