tagName in containers
Due to problems with Internet Explorer, containers now have an attribute "tagname", that is used when it's time to render it.
For example, when you have an elements list (ul), and this kind of template:
<ul id="list">
<container class="ListElement">
</ul>
after adding 2 List Elements, the rendered HTMl will look like
<ul id="list">
<li id="list:1">1st Element</li>
<li id="list:2">2nd Element</li>
<div style="visibliity:hidden"/>
</ul>
The div element will not render correctly in IE, causing AJAX to stop working. Here's where you need to use the "tagname" attribute:
<ul id="list">
<container class="ListElement" tagname="li">
</ul>
creating this HTML
<ul id="list">
<li id="list:1">1st Element</li>
<li id="list:2">2nd Element</li>
<li style="visibliity:hidden"/>
</ul>
Which renders correctly.
Templates just use the tagname of their first element.
Labels: Rendering
