[twill] Twill form parsing error depending on br tag formatting (missing form fields)

Ramon Felciano felciano at ingenuity.com
Sun Nov 5 21:20:22 PST 2006

I expect that you are right. Is there a way to have twill pipe all visited pages through something like Tidy to clean them up?


From: Titus Brown [mailto:titus at caltech.edu]
Sent: Sun 11/05/2006 20:42
To: Ramon Felciano
Cc: twill at lists.idyll.org
Subject: Re: [twill] Twill form parsing error depending on br tag formatting (missing form fields)

-> Given the following HTML:
-> <html>
->  <head>
->   <title>Broken</title>
->  </head>
->  <body>
->   <form name="login" method="post" action="test.cgi">
-> This works:<br />   <input name="username_ok" type="text" />
-> This does not:<br/>   <input name="username_whereami" type="text" />
->   </form>
->  </body>
-> </html>
-> twill finds the first input field but misses the second one. This appears to be because the BR tag is immediately closed rather than with an intermediate space (i.e. <br/> instead of <br />).
-> I believe this is legal HTML as well as XML. Any suggestions?

Hi, Ramon,

'tidy' cleans it up by converting <br/> to <br> on my system, which
makes me suspect that it may not be valid HTML.  Perhaps it's
valid XHTML?

John, do you have any thoughts?


This email message (and any attached document) contains information from Ingenuity Systems Inc. which may be considered confidential by Ingenuity, or which may be privileged or otherwise exempt from disclosure under law, and is for the sole use of the individual or entity to whom it is addressed.  Any other dissemination, distribution or copying of this message is strictly prohibited.  If you receive this message in error, please notify me and destroy the attached message (and all attached documents) immediately. 

More information about the twill mailing list