summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/qweb/qweb2.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-04-21 14:19:05 +0200
committerChristophe Simonis <chs@odoo.com>2017-04-21 14:19:05 +0200
commita0ff1f2ad845a3d9359bdcb8f9861b18cbe40bf5 (patch)
tree79089b3c6bd3c22a62fc194fe099a707adbabecb /addons/web/static/lib/qweb/qweb2.js
parent3724d85904dead0f865d92f4d1c9b303daed5c8e (diff)
parent8de514f8059a1eccf054c4df24bf420e06b9a3a4 (diff)
[MERGE] forward port branch 9.0 up to 8de514f8059
Diffstat (limited to 'addons/web/static/lib/qweb/qweb2.js')
-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 + '-->';
}