BorisMoore/jsrender — Issue #47: activeViews with <col> fails without <colgroup>
Author: jsgoupil
Created: 2011-12-13 17:42:44+00:00
State: open

If creating a table template with <col> tags without <colgroup>, the browser will force to add a <colgroup> around <col>.

The active view comments get messed up causing a JavaScript error, not able to find the correct data for the template.

----

<table>
{{each columns tmpl=templateCol}}
…
</table>

templateCol is:
<col />

The output on the page is:
<!--tmpl() _0-->
<table>
<!--tmpl($data.columns) _1-->
<!--item-->
<colgroup>
<col>
<!--/item-->
<!--item-->
<col>
<!--/item-->
<!--/tmpl-->
</colgroup>
</table>
<!--/tmpl-->