Trim whitespace from html_to_element input.

master
voussoir 2020-09-12 20:33:46 -07:00
parent 188095c30b
commit 329c6dd27b
1 changed files with 2 additions and 2 deletions

View File

@ -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 =