Trim whitespace from html_to_element input.
This commit is contained in:
parent
188095c30b
commit
329c6dd27b
1 changed files with 2 additions and 2 deletions
|
@ -169,8 +169,8 @@ common.html_to_element =
|
|||
function html_to_element(html)
|
||||
{
|
||||
let template = document.createElement("template");
|
||||
template.innerHTML = html;
|
||||
return template.content.firstChild;
|
||||
template.innerHTML = html.trim();
|
||||
return template.content.firstElementChild;
|
||||
}
|
||||
|
||||
common.init_atag_merge_params =
|
||||
|
|
Loading…
Reference in a new issue