« Return to Thread: Why do forms contain unstyled divs?

Why do forms contain unstyled divs?

by Stefan Schmiedl :: Rate this Message:

Reply to Author | View in Thread

The story behind this question:

I have a simple form:

(html form)
        defaultAction: [#submit out];
        with:
                [html text: 'Suche '.
                html textInput submitOnClick]];

It is rendered like this:

<form >
  <div>
    <input style="position: absolute; top: -100em;" type="submit">
    <input style="position: absolute; top: -100em;" type="text">
  </div>
  Suche  <input onclick="submit()" class="text" type="text">
  <div>
    <input class="hidden" type="hidden">
    <input class="hidden" type="hidden">
  </div>
</form>

I see that the implementors have taken steps to keep required elements
out of sight. Still, both above and below my form content, div's without
styles remain. Is there a specific reason for not specifying a hiding
style to the wrapping div instead/additionally to hiding the contents?

<form >
  <div class="hidden">
    <input type="submit">
    <input type="text">
  </div>
  Suche  <input onclick="submit()" class="text" type="text">
  <div class="hidden">
    <input type="hidden">
    <input type="hidden">
  </div>
</form>

Browser hacks? Evolutionary wart?

Regards,
s.
_______________________________________________
seaside mailing list
seaside@...
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

 « Return to Thread: Why do forms contain unstyled divs?