[Seaside] Utility Method

Tony Garnock-Jones tonyg at lshift.net
Thu Jun 16 18:07:39 CEST 2005


Bill Holloway wrote:
> I tried using
> WAHtmlRenderer>>#label:input: but this puts the <input> tag inside the
> <label> tag's body.  HTML gurus, is that ok?

Yes - according to the examples at
http://www.w3.org/TR/html4/interact/forms.html#h-17.9.1 we have both:

1. explicit association of a label with a control:

<TR>
    <TD><LABEL for="fname">First Name</LABEL>
    <TD><INPUT type="text" name="firstname" id="fname">

and 2. implicit association of a label with a control:

<LABEL>
   First Name
   <INPUT type="text" name="firstname">
</LABEL>

Cheers,
  Tony


More information about the Seaside mailing list