[ADD] Add t-opentag="bool" attribute in order to force an empty tag to be opened (IE issue)

bzr revid: fme@openerp.com-20110412090716-s3jy1ct6pz3qfrvn
This commit is contained in:
Fabien Meghazi 2011-04-12 11:07:16 +02:00
parent 9f780dd615
commit 091f817b14
1 changed files with 3 additions and 1 deletions

View File

@ -166,7 +166,9 @@ var QWeb = {
for (var an in g_att) {
att += " " + an + '="' + this.escape_att(g_att[an]) + '"';
}
return inner.length ? "<" + e.tagName + att + ">" + inner + "</" + e.tagName + ">" : "<" + e.tagName + att + "/>";
// Some IE versions have problems with closed tags
var opentag = !!t_att['opentag'] && this.eval_bool(t_att["opentag"], v);
return inner.length || opentag ? "<" + e.tagName + att + ">" + inner + "</" + e.tagName + ">" : "<" + e.tagName + att + "/>";
},
render_att_att:function(e, t_att, g_att, v, ext, av) {
if (ext) {