[Zope3-Users] ++skin++Boston bug

Marco Mariani marco at sferacarta.com
Tue May 23 11:28:26 EDT 2006


I'm using the Boston skin (from SVN) with Zope 3.3.0b1


My Object Widgets, that in Rotterdam are well rendered:


+- Mother ------+
|               |
|  Name _____   |
|               |
+---------------+

+- Father ------+
|               |
|  Name _____   |
|               |
+---------------+



are broken when using Boston:

+- Mother ------+
|               |
+---------------+

 Name _____

+- Father ------+
|               |
+---------------+

 Name _____



Basically, the fieldset tag is closed before rendering the custom widget


relevant snippet, Rotterdam:

  <td>
    <fieldset>
      <legend>Mother</legend>
      <div class="row">
        <div class="label">
[...]



Boston:

  <td>
    <fieldset>
      <legend>Mother</legend>
      <div class="row">
      </div>
    </fieldset>
  </td>
</tr>
<tr>
  <td class="labels">
    <div class="label">
[...]






Commenting out the <td> and <tr> from Boston renders the fieldset in the
right place



/me guesses this has to do with using the widget_row macro inside
another widget_row, thus trying to render
<tr><td><tr><td>....</td></tr></td></tr> and the browser closes the
fieldset, td and tr when it encounters a <td><tr> sequence.

Tested with FF and konq, maybe it works with IE :-)









More information about the Zope3-users mailing list