-
Notifications
You must be signed in to change notification settings - Fork 14
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
Default template engine should throw for literal property binding. #203
Comments
IMO, we should not allow |
🤔 — I actually think we should do what we’re currently doing… just totally ignore that. You can do this today:
I want to try very hard not to mess with default behavior… I wonder if that means we ought to actually not fail in the case of: html`<div .foo="bar" .another="${whatever}"></div>`; … not totally sure what the “best” choice here is! |
While the spec allows for attributes with a preceding
|
I think I’ve only ever seen a literal property binding by mistake, so I’m tempted to keep this strict. However, I wanted to farm for dissent a little bit. Currently…
NOT OK
OK
or…
^^ But this last one is considered an anti-pattern and should not be used.
The text was updated successfully, but these errors were encountered: