nanohtml
nanohtml copied to clipboard
Text node as a root ignores the following element
html`.<a></a>`
This ignores <a> and returns ".", whereas html`.<a></a>.` correctly returns a DocumentFragment.
Workaround: html`.<a></a>${""}`