[FIX] Internet Explorer can't CDATA in HTML documents, convert XML CDATA sections into TEXT html sections

bzr revid: xmo@openerp.com-20120118112451-f7sbhzalhl2vapmc
This commit is contained in:
Xavier Morel 2012-01-18 12:24:51 +01:00
parent d5a0079d09
commit 00af91057f
1 changed files with 3 additions and 2 deletions

View File

@ -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);
}