diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-04-21 14:34:11 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-04-21 14:34:11 +0200 |
| commit | 814c55091339ea508a2aecf03f9c41bf4a63a14a (patch) | |
| tree | b7cb44aa8a25300aef8fb38c89407f2c3f4287c9 /addons/web/static/lib/qweb/qweb2.js | |
| parent | 3e0b720e510cfad29748a36f66dcef204e8256f0 (diff) | |
| parent | a0ff1f2ad845a3d9359bdcb8f9861b18cbe40bf5 (diff) | |
[MERGE] forward port branch saas-11 up to a0ff1f2ad84
Diffstat (limited to 'addons/web/static/lib/qweb/qweb2.js')
| -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 + '-->'; } |
