[ZCM] [ZC] 1370/ 1 Request "customDefaultZPTReport.dtml Creates Invalid HTML"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Sun Jun 6 16:43:33 EDT 2004


Issue #1370 Update (Request) "customDefaultZPTReport.dtml Creates Invalid HTML"
 Status Pending, Zope/bug medium
To followup, visit:
  http://zope.org/Collectors/Zope/1370

==============================================================
= Request - Entry #1 by Anonymous User on Jun 6, 2004 4:43 pm

The file that generates a standard search interface creates invalid html (not to mention XHTML),  The file is

customDefaultZPTReport.dtml

The lines causing the problem are -

  <div tal:repeat="result batch" >
  
    %(row)s

  </div>

The problem is that this produces div elements *between* tr elements, and this is invalid.  The desired result is

  <tr tal:repeat="result batch">
     <td><span tal:replace="result/field1">field1 goes here</span></td>
     <td><span tal:replace="field2">field2 goes here</span></td>
    ... etc.
   </tr>

That is, the tal:repeat should go into the first tr element, not into an enclosing div element.


==============================================================




More information about the Zope-Collector-Monitor mailing list