After rendering this HTML in CanJS, 'tests' elements got placed before table and not after previous cell as it is supposed to be:
Problem was that input tag was not closed, which is usually fine with HTML, but confuses CanJS. After closing it, everything was working as expected.
<thead>
<tr>
<th>Test</th>
<th><input type="button" value="Test"></th>
{{#tests}}
<th>{{name}}</th>
{{/tests}}
</tr>
</thead>
Problem was that input tag was not closed, which is usually fine with HTML, but confuses CanJS. After closing it, everything was working as expected.
No comments:
Post a Comment