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

Problem with INPUT tags

From: CeBlanc@lyon-partdieu.sema.slb.com <CeBlanc@lyon-partdieu.sema.slb.com>
Date: Tue, 08 Apr 2003 13:59:44 +0200
To: html-tidy@w3.org
Message-id: <1B9D8A2F7E92D611967D009027D0897E2C9B4C@lyomes01.lyon.eur.slb.com>

Hi
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.

Do you know how I can configure tidy for correcting this ? the simplest way
could be to close each <INPUT> tag with " />" instead of ">", but how can I
do this ?

Cedric
Received on Tuesday, 8 April 2003 07:57:35 GMT

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