ember-polyfills / ember-angle-bracket-invocation-polyfill

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't set `class=` attribute

amk221 opened this issue · comments

I'm not sure what combination of dependencies causes this, but a simple example of:

<MyComponent class="foo" />

is not rendering the class attribute.... changing to @class fixes it, but that's wrong?

Demo repo with failing test:

https://github.com/amk221/-ember-angle-brackets-in-addon/blob/master/tests/integration/components/my-component-test.js#L13

Looks like you are hitting the issue reported in emberjs/ember.js#17533. This should have been fixed in ember-source@3.9.1 (by emberjs/ember.js#17870), but it looks like you are already using 3.9.1 and therefore shouldn't have this issue... 🤔

@chancancode - Anything obvious I missed?

@amk221 - I've kicked off #63 to see if the test we added shows an issue under 3.9...

👋🏻Any update on this?

Hi again, any idea what I can do to help with this?

Maybe send in a failing test showing input / output expectations? I was fairly sure that this was fixed...

I did do a failing test in the example repo, but I will try to add one directly to ember-angle-bracket-invocation-polyfill

I've done a bit of digging...

  • If I install ember-font-awesome into my failing test demo repo, then it passes.

  • Similarly, if I add my failing test from the demo repo to ember-angle-bracket-invocation-polyfill, and uninstall ember-font-awesome, then that test fails with ember try:one ember-lts-3.8

I realise this is a bit odd and maybe not helpful.

I hope it’s not something stupid. I’d hate it to be a red herring.

Yikes. That is indeed odd.

Here is a build of ember-angle-bracket-invocation-polyfill without ember-font-awesome

Most builds pass, apart from ember-3.4 and ember-3.8

👋 Being able to set class= as an attribute is a very common requirement...

I'm starting to get a backlog of test failures on travis where this polyfill isn't working. Making it impossible to release new versions of my addons with backwards compatibility.

I'm surprised nobody else is experiencing this

I'm sorry, I haven't had enough time lately to be able to dig into your demo. I will try to put this back on my queue to dig into, but I'm not sure what that means timeline wise...

That's ok.

In the meantime, I will try to factor out font-awesome from ember-angle-bracket-invocation-polyfill's test suite

FWIW, I think I'm running into this too. It seems passing class="" into a splattributes isn't working below 3.9. Any chance this polyfill can account for the issue? Or is that something that would need to be backported in ember (which is not likely to happen)?
https://travis-ci.org/froala/ember-froala-editor/builds/624378772