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

rule: Expressions can occur in text content or in attribute value positions. #73

Open
greg-minshall opened this issue Dec 1, 2020 · 0 comments

Comments

@greg-minshall
Copy link

would it be worth while (and, tractable) to have a rule that enforces the above lit-html constraint? the following concocted code, for example, causes an exception:

render(html`<div ${'data="cancel"'}></div>`, $('body')[0])

while the following produces happiness

render(html`<div data=${"cancel"}></div>`, $('body')[0])

(if that's what you were looking for.)

cheers.

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

No branches or pull requests

1 participant