Re: Problem with INPUT tags

* BLANC Cédric - LYO wrote:
>I have a problem when I use JTidy for parsing an HTML file : Tidy tries to
>add a </INPUT> tag for each <INPUT> one, but unfortunately not at the good
>place... Here's an example :
>This :
>	<TD><INPUT name="login" type="text" size="20"></TD>
>	<TD>Coucou</TD>
>
>Becomes this after having been parsed :
>	<TD>
>		<INPUT name="login" type="text" size="20">
>			<TD>Coucou</TD>
>		</INPUT>
>	</TD>
>As you can see, Tidy does not put the INPUT closing tag immediately after
>the opening tag and incorporates the next elements in the INPUT block, which
>it shouldn't do.

I am unable to reproduce this, maybe this is caused by other errors or
your configuration options? Using the latest JTidy available I get

  <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
  <html>
  <head>
  <meta name="generator" content="HTML Tidy, see www.w3.org">
  <title></title>
  </head>
  <body>
  <table>
  <tr>
  <td><input name="login" type="text" size="20"></td>
  <td>Coucou</td>
  </tr>
  </table>
  </body>
  </html>

Received on Tuesday, 8 April 2003 15:24:58 UTC