summaryrefslogtreecommitdiff
path: root/addons/base/static/lib/qweb/qweb.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/base/static/lib/qweb/qweb.js')
-rw-r--r--addons/base/static/lib/qweb/qweb.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/base/static/lib/qweb/qweb.js b/addons/base/static/lib/qweb/qweb.js
index 59bcd12ef9b..05dd9d65fe2 100644
--- a/addons/base/static/lib/qweb/qweb.js
+++ b/addons/base/static/lib/qweb/qweb.js
@@ -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) {