summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/qweb
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-04-21 14:07:02 +0200
committerChristophe Simonis <chs@odoo.com>2017-04-21 14:07:02 +0200
commit8de514f8059a1eccf054c4df24bf420e06b9a3a4 (patch)
tree0fc63b79a165a6592b8a90d6ebd1f049eb57a4ce /addons/web/static/lib/qweb
parent144ff9a61a4b368f72aac7948f7b458d37b230f7 (diff)
parentb084ffd7f1147ec943c7750b772de3082fbe8c81 (diff)
[MERGE] forward port branch saas-6 up to b084ffd7f11
Diffstat (limited to 'addons/web/static/lib/qweb')
-rw-r--r--addons/web/static/lib/qweb/qweb2.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/web/static/lib/qweb/qweb2.js b/addons/web/static/lib/qweb/qweb2.js
index 1cfc7bb69ef..b1bf280f516 100644
--- a/addons/web/static/lib/qweb/qweb2.js
+++ b/addons/web/static/lib/qweb/qweb2.js
@@ -120,12 +120,15 @@ var QWeb2 = {
}
return r.join('');
} else {
+ // avoid XMLSerializer with text node for IE
+ if (node.nodeType == 3) {
+ return node.data;
+ }
if (typeof XMLSerializer !== 'undefined') {
return (new XMLSerializer()).serializeToString(node);
} else {
switch(node.nodeType) {
case 1: return node.outerHTML;
- case 3: return node.data;
case 4: return '<![CDATA[' + node.data + ']]>';
case 8: return '<!-- ' + node.data + '-->';
}