[twill] No space before "/>" breaks form?

Hancock, David (DHANCOCK) DHANCOCK at arinc.com
Fri Apr 7 19:40:16 PDT 2006

I encountered a situation today where I had a form with some embedded
<br> tags, expressed as "<br/>" (that is, no space before the "/>") and
the form fields stopped showing up, giving "NO SUCH FORM FIELD" errors
on submit. Putting the space back in ("<br />") made them work again.

Here's the actual form section:

<div id="loginform">
   <form method="post" name="loginform" action="ChkLogin">
   <h3>ARINC Direct Login</h3>
   <strong>User ID</strong><br/>
   <input name="username" id="username" type="text"
   <input name="password" type="password" style="width:80%;"><br/>
   <div id="buttonbar">
   <input value="Login" name="login" class="button" type="submit">

Using this form, the username and password fields don't show up in
showforms--only the submit button does. I have read that XHTML allows
the no-space-before form, but the compatibility appendix recommends the
space so as not to break nonconforming browsers.

Is twill "nonconforming" in this way? We'll go back and put the space in
just to be safe, but is there an option to tell twill to be more liberal
in what it accepts?

Thanks, and
David Hancock | dhancock at arinc.com | 410-266-4384 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.idyll.org/pipermail/twill/attachments/20060407/14b07ee5/attachment.html

More information about the twill mailing list