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

misplacing some of the end tags

From: Vamsidhar Reddy P <vamsidhar.poondla@wipro.com>
Date: Tue, 16 May 2000 18:31:53 +0530
To: html-tidy@w3.org
Message-ID: <77365D9D99.AAA4D09@vindhya.wipsys.stph.net>
Hello,
       As I understand, Tidy validates the HTML file and would fix the
mistakes ,if any in the HTML file.  
				The following HTML code which has no end
anchor tags,is given as input to Tidy. It has put the missing end anchor
tags in the output but misplaced them. 

The following HTML code is given as input to tidy

<HTML>
<BODY>
<A HREF="http://www.yahoo.com"> This is a link to yahoo page
<A HREF="home.htm"> This is a link to a file
</BODY>
</HTML>


The output got from tidy 
 
<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title></title>
</head>
<body>
<a href="http://www.yahoo.com"> This is a link to yahoo page <a
href="home.htm"> This is a link to a file</a></a>
</body>
</html>
 

      In the output, the end anchor tags were put at the wrong place.The
actual output should be
     <a href="http://www.yahoo.com"> This is a link to yahoo page </a>
     <a href="home.htm"> This is a link to a file</a>

Could anyone tell me, how to solve this problem...


Thanx in Advance,
Reddy.
Received on Tuesday, 16 May 2000 09:13:07 GMT

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