Closed simonihmig closed 5 years ago
Needs a rebase I think
Rebased, but the Ember 2.12 scenario is failing. Will have to investigate...
Ok, that was a stupid mistake. Green now!
Thank you! Glad we had coverage :smile:
Reading through this made me think of another issue: passing modifiers, comments, or attributes other than the specific ones we handle should issue a helpful error.
What do you mean by "comments"?
So to make this clear, as we transform to curly syntax that does not support arbitrary HTML attributes and no modifiers (which RFC435 does allow for angle bracket invocation), we should error on
attributeBindings
However passing any kind of unsupported property should not error IMHO, as that wouldn't be the case also with "native" angle bracket support (no polyfill required).
Correct?
Do you want me to tackle this in this PR? I would suggest to do that in another one, that also includes the link-to transform. So we can hopefully merge this before?
Do you want me to tackle this in this PR? I would suggest to do that in another one, that also includes the link-to transform. So we can hopefully merge this before?
Sorry, yes, I totally agree that we don't want that here in this PR. I just thought of it while reviewing this one.
What do you mean by "comments"?
<LinkTo @route="foo" @model={{whatever}} {{! template-lint-disable-tree no-bare-strings }}>Hello Untranslated String!</LinkTo>
So to make this clear, as we transform to curly syntax that does not support arbitrary HTML attributes and no modifiers (which RFC435 does allow for angle bracket invocation), we should error on
- passing an attribute that is not supported through attributeBindings
- passing any kind of modifier
Yes, exactly what I meant.
However passing any kind of unsupported property should not error IMHO, as that wouldn't be the case also with "native" angle bracket support (no polyfill required).
I don't quite understand what you mean here. Can you give an example of what you refer to as an "unsupported property"? Do you mean an attribute that isn't in the attributeBindings
? A named argument that we don't "know" about? Something else?
A named argument that we don't "know" about?
Yes, that one. I probably was confused about your "comment" remark, because I didn't realize that was even possible until now, so thought you might mean some else / have a typo. I guess we agree that we don't have to do anything about arguments, so please ignore my confusion! 😝
Based on #72, will rebase once that is merged.