From 00af91057fca81015e44d94b0d8d298317b1300b Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Wed, 18 Jan 2012 12:24:51 +0100 Subject: [PATCH] [FIX] Internet Explorer can't CDATA in HTML documents, convert XML CDATA sections into TEXT html sections bzr revid: xmo@openerp.com-20120118112451-f7sbhzalhl2vapmc --- addons/web/static/lib/qweb/qweb2.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/web/static/lib/qweb/qweb2.js b/addons/web/static/lib/qweb/qweb2.js index c8234db77e5..089b1812aa5 100644 --- a/addons/web/static/lib/qweb/qweb2.js +++ b/addons/web/static/lib/qweb/qweb2.js @@ -310,8 +310,9 @@ QWeb2.Engine = (function() { }, convert_xml_to_html: function (node) { switch (node.nodeType) { - case 3: return document.createTextNode(node.data); - case 4: return document.createCDATASection(node.data); + case 3: + case 4: + return document.createTextNode(node.data); case 8: return document.createComment(node.data); }