Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text node as a root ignores the following element #160

Open
saschanaz opened this issue Oct 22, 2019 · 0 comments
Open

Text node as a root ignores the following element #160

saschanaz opened this issue Oct 22, 2019 · 0 comments
Labels

Comments

@saschanaz
Copy link
Contributor

saschanaz commented Oct 22, 2019

html`.<a></a>`

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants