diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-04-25 12:36:02 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-04-25 12:36:02 +0200 |
| commit | 4441237b0a80cc8eca04a35ad825bce876a2d7b6 (patch) | |
| tree | efafd204a16cc8fd762ac24f3af4ddf90ae57d6e /addons/web/static/lib | |
| parent | 38bb4f07d0bfb0de12414ab99c4815c0d9ff48a6 (diff) | |
| parent | ab68a1c6740162c59fa54effc6133964d0a51bc8 (diff) | |
[MERGE] forward port branch saas-15 up to ab68a1c6740
Diffstat (limited to 'addons/web/static/lib')
| -rw-r--r-- | addons/web/static/lib/qweb/qweb2.js | 5 |
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 1e854a6960c..378c5eb6023 100644 --- a/addons/web/static/lib/qweb/qweb2.js +++ b/addons/web/static/lib/qweb/qweb2.js @@ -129,12 +129,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 + '-->'; } |
