[tidy - Help] overlapping tags...

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 UTC