-
Notifications
You must be signed in to change notification settings - Fork 27.4k
why styled-component breaks in IE11 when used by angular? #16215
Comments
I would love to know even just how to approach this issue (which file maybe suspect? where would be the best entry point to start the debugging? etc) .... wonder how would someone debugging this anyway? |
I did some debugging and here is what I found:
This happens, because in IE11 we merge consecutive textNodes in order to work around another IE11 bug (see #11781 and #14924 for more details): Lines 2000 to 2002 in ecc09a4
I am afraid there is not much we can do (without breaking other usecases). Depending on your requirements, there are some ways you could work around this:
|
U can do anything u set your mind to |
@gkalpak Thanks for the debugging work! Just few quick thing
Thanks !!!! |
Pretty much yes. I mean, I stepped through the
This essentially means, that you can work around it. So, it is inconvenient, but doesn't stop you from having a working app.
Never say never, but yeah, that's the general idea. Closing as @jbedard, had an interesting idea, which might work: @adamchenwei, if you want to take a stub at it and see if any test breaks (and whether it works in your demo), feel free to go ahead 😁 |
We discussed this and decided that it is not worth trying to fix, given that:
It is unfortunate that we have to work-around IE11's bug in the first place, but it is what it is 😃 |
I'm submitting a ...
Current behavior:
Style gone missing when styled-components is used inside angularjs application (even if the styled component was applied in React if its loaded into anuglarjs, it breaks anyway. Run in React alone has no issue whatsoever.
Expected / new behavior:
Angular should be able to render styled components style correctly.
Minimal reproduction of the problem with instructions:
https://github.com/dfrankland/styled-components-angular-ie-11-conflict
AngularJS version: 1.x.y (latest)
Browser:
IE 11
Anything else:
The text was updated successfully, but these errors were encountered: