<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>No space before "/>" breaks form?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">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.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Here's the actual form section:</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"><div id="loginform"></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <form method="post" name="loginform" action="ChkLogin"></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <h3>ARINC Direct Login</h3></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <br/></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <strong>User ID</strong><br/></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <input name="username" id="username" type="text" style="width:80%;"><br/></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <strong>Password</strong><br/></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <input name="password" type="password" style="width:80%;"><br/></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <div id="buttonbar"></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <input value="Login" name="login" class="button" type="submit"></FONT>
<BR><FONT SIZE=2 FACE="Arial"> </div></FONT>
<BR><FONT SIZE=2 FACE="Arial"> </form></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <script language="javascript">document.getElementById("username").focus();</script></FONT>
<BR><FONT SIZE=2 FACE="Arial"></div></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">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.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">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?</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Thanks, and</FONT>
<BR><B><FONT SIZE=2 FACE="Arial">Cheers!</FONT></B>
<BR><B><FONT SIZE=2 FACE="Arial">--</FONT></B>
<BR><FONT SIZE=2 FACE="Arial">David Hancock | dhancock@arinc.com | 410-266-4384</FONT>
</P>
</BODY>
</HTML>