-
Bug
-
Resolution: Fixed
-
Normal
-
8.5.2
-
Security Level: Jimmy
-
happens in IE10 / IE11
works in chrome/FF
-
ZK 8.6.0 S1
-
None
Steps to Reproduce
run the fragment-foreach-error.zul
Current Result
console error in IE
SCRIPT5009: 'each' is undefined zkmax.wgt.wpd (97,12270)
Expected Result
generating tables works across browsers
Debug Info
when using just <div> elements there's no such problem
Workaround
use <div/> with CSS styles to achieve a table layout
e.g.
<style> .mytable { display: table; } .mytable > div { display: table-row; } .mytable > div > div { display: table-cell; } </style> ... <div class="mytable"> <forEach items="@load(cars)"> <div><!-- row --> <div><!-- cell--> <div textContent="@load(each)"/> </div> </div> </forEach> </div>