Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Submitted By: Manik (mc27y)
Assigned to: Nobody/Anonymous (nobody)
Summary: html form's submittable element resides outside of the form
A question about "com.gargoylesoftware.htmlunit".
Lets we have a html file (test1.html) like below where
"<form>" tag is not placed suitably. (However I am not
sure if if the following HTML is valid, but browsers
are worked fine with it).
Comment By: Marc Guillemot (mguillem)
Date: 2006-10-19 20:56
Logged In: YES
The html is not correct, form is not allowed at this place.
htmlunit parses it correctly as "normal" browsers do (try to
dump the DOM in a normal browser) BUT you're right, normal
browsers are able to "connect" the fields to the form.
I've an idea how the "lost children" could be mapped to the
form but I've never had time for this nor the necessity. The
parser needs to be modified to "see" the </form> (which is
ignored as <form> has already been closed due to the <tr>)
and register all input fields found since form opening to
the last form element.