[FIX] QWeb: Internet Explorer DOM converts tags to uppercase

bzr revid: fme@openerp.com-20120117135958-gv2iv4ixomqzcnny
This commit is contained in:
Fabien Meghazi
2012-01-17 14:59:58 +01:00
parent a76f9d6112
commit 425b6b4b33
+2 -2
View File
@@ -194,7 +194,7 @@ var QWeb2 = {
QWeb2.Engine = (function() {
function Engine() {
// TODO: handle prefix at template level : t-prefix="x"
// TODO: handle prefix at template level : t-prefix="x", don't forget to lowercase it
this.prefix = 't';
this.debug = false;
this.templates_resources = []; // TODO: implement this.reload()
@@ -620,7 +620,7 @@ QWeb2.Element = (function() {
}
}
}
if (this.tag !== this.engine.prefix) {
if (this.tag.toLowerCase() !== this.engine.prefix) {
var tag = "<" + this.tag;
for (var a in this.attributes) {
tag += this.engine.tools.gen_attribute([a, this.attributes[a]]);