- From: 岡本 浩之 <hokamoto@mse.mei.co.jp>
- Date: Mon, 05 Mar 2001 16:33:49 +0900
- 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 UTC