From 091f817b14ccb9fb0ca38a2b45fdf008ac33e53a Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Tue, 12 Apr 2011 11:07:16 +0200 Subject: [PATCH] [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 --- addons/base/static/lib/qweb/qweb.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 + 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 + att + "/>"; }, render_att_att:function(e, t_att, g_att, v, ext, av) { if (ext) {