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

Unexpected tag error from Tidy

From: Jie Wu <jie82.wu@gmail.com>
Date: Tue, 13 Jun 2006 12:41:52 -0500
To: <html-tidy@w3.org>
Message-ID: <448ef8dc.0d3273dc.4ed2.ffffdb18@mx.gmail.com>

Hi, All,

Following is part of the HTML code from Google.
	<body bgcolor=#ffffff onload="document.gs.reset();" topmargin=3
		<table border=0 cellpadding=0 cellspacing=0 width=100%>
			<form name="gs" method="GET" action="search">

    Your search - <b>ahfljaldfa</b> - did not match any documents.  
	    <li>Make sure all words are spelled correctly.
	    <li>Try different keywords.
	    <li>Try more general keywords.
    <br clear=all>

If I use Tidy to convert this HTML to XML, it always says "Error: discarding
unexpected </form>". However, when I remove the line <td>d</td> away, now it
could work fine. Is it a bug or something else?

Can somebody help?

Jie Wu 
Room 410, Fedex Institute of Technology, 
Department of Computer Science 
University of Memphis 
38152, TN, The United States 
Received on Tuesday, 13 June 2006 20:47:29 UTC

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