Commit 7b7b823e authored by Romain Courteaud's avatar Romain Courteaud

erp5_core: html viewer do not keep the body element

parent f42cc54c
......@@ -220,7 +220,7 @@
rJS(window)
.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));
\ 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