W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2001

[tidy - Help] overlapping tags...

From: <noreply@sourceforge.net>
Date: Tue, 14 Aug 2001 19:12:50 -0400 (EDT)
To: noreply@sourceforge.net
Message-Id: <E15WnMR-0006GP-00@usw-sf-web1.sourceforge.net>

Read and respond to this message at: 
http://sourceforge.net/forum/message.php?msg_id=213247
By: swagr

This was originally posted to a jtidy forum, but I was told this is the place
to ask. (I guess assume I'm using HTML Tidy)

I have written a web bot (that uses jtidy) that can fill out forms automatically,
or with the help of pre-defined templates.

I was testing it on a variety of pages and it "broke" on ones with overlapping
tags.

e.g. 
... 
<center> 
<form> 
<input... 
</center> 
<input... 
</form> 

jtidy automagically closes the form tag before the </center> tag, thus when
I explore a node starting from the form root, I don't have all form data accessible
to me. So basically a nodes loose their proper parents.

I know this is not a bug, it's someone else's bad HTML. But can anyone suggest
a quick fix? Is there a way for jtidy (HTML Tidy) to move the </center> tag
so that it encloses the entire form?

Thanks for your help, 
-swagr 



______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge and visit: 
http://sourceforge.net/forum/monitor.php?forum_id=87107
Received on Saturday, 18 August 2001 16:29:50 GMT

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