dojo / dojox

Dojo 1 - extras library. Please submit bugs to https://bugs.dojotoolkit.org/
https://dojotoolkit.org/
Other
151 stars 229 forks source link

Template logic not rendering content inside a table #308

Open QuinnBast opened 5 years ago

QuinnBast commented 5 years ago

When using a widget with a template, elements that are rendered inside of a <table> element are not parsed properly.

This template:

{{batteryList}}
<table>
    <tbody>
        <tr>{{batteryList}}</tr>
    </tbody>
</table>

Will output the following to the dom:

[object Object]
[object Object]
<table style="">
    <tbody style="">
        <tr style=""></tr>
    </tbody>
</table>

This also applies to for loops {% for element in list %}, which are unable to loop through elements when they are placed inside a <table>