nanohtml icon indicating copy to clipboard operation
nanohtml copied to clipboard

Text node as a root ignores the following element

Open saschanaz opened this issue 6 years ago • 0 comments

html`.<a></a>`

This ignores <a> and returns ".", whereas html`.<a></a>.` correctly returns a DocumentFragment.

Workaround: html`.<a></a>${""}`

saschanaz avatar Oct 22 '19 11:10 saschanaz