Commit 587f3b96 authored by Romain Courteaud's avatar Romain Courteaud

erp5_core: html viewer do not keep the body element

parent 24ac79c2
...@@ -220,7 +220,7 @@ ...@@ -220,7 +220,7 @@
rJS(window) rJS(window)
.declareMethod('render', function (options) { .declareMethod('render', function (options) {
domsugar(this.element, [cleanup(options.value)]); domsugar(this.element, Array.from(cleanup(options.value).childNodes));
}); });
}(window, rJS, domsugar, document, DOMParser, NodeFilter)); }(window, rJS, domsugar, document, DOMParser, NodeFilter));
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment