diff options
| author | Xavier Morel <xmo@openerp.com> | 2012-01-18 12:24:51 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2012-01-18 12:24:51 +0100 |
| commit | 00af91057fca81015e44d94b0d8d298317b1300b (patch) | |
| tree | a04eb5516fd48a3de4c78eea506a6e8da68f23c4 /addons/web/static/lib/qweb/qweb2.js | |
| parent | d5a0079d09e2660289a1422d110763d9e1046625 (diff) | |
[FIX] Internet Explorer can't CDATA in HTML documents, convert XML CDATA sections into TEXT html sections
bzr revid: xmo@openerp.com-20120118112451-f7sbhzalhl2vapmc
Diffstat (limited to 'addons/web/static/lib/qweb/qweb2.js')
| -rw-r--r-- | addons/web/static/lib/qweb/qweb2.js | 5 |
1 files 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); } |
