-
Notifications
You must be signed in to change notification settings - Fork 33
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
HTML style attribute inconsistency #80
Comments
After further investigation it appears on Ember versions < 3.1 |
Confirm issue ember-polyfills#80
I've created a PR which add my test case (feel free to close it).
|
Just wanted to point out that the two invocations are actually different: If your classic component (curly) invocation was: {{test-me style="color: red" }} Then your angle bracket invocation should be: <TestMe @style="color: red" /> But in your original description you mentioned that you used |
@rwjblue yes it was just to give an output comparison but invocations are different. Do you have any hint where to start to look at to contribute to the polyfill? |
Hi,
I found an inconsistent behavior depending on ember versions and ember-angle-bracket-invocation-polyfill.
Here is my
ember-angle-bracket-invocation-polyfill
version: 2.0.1 (but I reproduce the same issue in 1.3.1)With classic component declaration:
In Ember 2.18.2: the style attribute doesn't exist in the final DOM.
In Ember 3.4.4: the style attribute doesn't exist in the final DOM.
If I try this:
In Ember 2.18.2: the style attribute doesn't exist in the final DOM.
In Ember 3.4.4: the style attribute exist in the final DOM.
IMO the expected behavior is that
style
attribute should be transferred to the final HTML node asstyle
isn't prefixed with@
.If I try with another attribute than
style
(likedata-foobar="foobar"
) it is transferred to the final HTML node as expected regarding the Ember versionsThe text was updated successfully, but these errors were encountered: