-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Improves backwards compatibility for safari #1908
Improves backwards compatibility for safari #1908
Conversation
i have no idea why that build is failing :/ |
is it that tests are flaky or should i investigate more? @MichMich |
It is flaky indeed ... but somehow your PR is the only on consistently failing. Could you try rebasing your PR? |
…o improves-backwards-compatibility-for-safari
no luck, maybe there's something to be found after all 🤔 ? I'll look into it on Monday |
your changes break the newsfeed module, it is not visible, no error messages ... |
that's right! no idea why though. probably also doing some styling via |
@MichMich ready to merge |
Thanks. The reason why I haven’t merged yet is because I want to check out the code behind the header. If we aren’t going to display the header. Why add it to the dom? Adding a hidden class feels like a bandage on a issue that should be solved else where. There might be a good reason to do it this way, but I want to confirm before I merge this. Thoughts? |
I think this has been answered in the original issue #1897 (comment) |
As it seems, the problem with the style property is that it is considered read-only. Correctly, one should not write directly to style, but set individual sub-properties of style. This means:
should become
Older versions of Safari apparently are more strict in this regard. |
In fully understand that @MichMich is checking whether unnecessary headers can simply not be created instead of being created and then hidden. With my above reference to @tbouron's comment I only intended to point @MichMich to why the current approach apparently had been implemented. @sejka, I totally share your intention to improve compatibility with older browsers. I myself want to use MagicMirror in serveronly mode and use an old 3rd generation iPad running on iOS 9 as client. I tried to find out why some code does not work in Safari 9. This is what I have found out so far.
Probably this list is incomplete. But in my fork (branch I do not want to criticize or compete with your PR. I just wanted to share my results. |
Wouldn't it be much better to use a transpiler (like babeljs or something) for compability in older browsers than forcing the code to be stuck in the past (IE6 flashbacks...)? |
great work @aghster! I think we have two separate conversations going on - to have headers in the DOM despite them being empty and general backwards compatibility for browsers. When it comes to second one i totally support @buxxi approach with babel. |
Ditching custom class-creation for es6 classes doesn't sound like complicating it 😄 Guessing babel would be a part of the gruntfile if it would be used. Could also be part of a specific Dockerimage to avoid having the core of MagicMirror have to support older browsers (and require a build-step) since the main target is electron. But there really should be something in the Contributing Guidelines about what browsers it needs to work in or what features of JS can/can't be used. |
Indeed. We will not use any pre-compilers. (see https://docs.magicmirror.builders/getting-started/manifesto.html) Sorry :) |
I understand. What's your recommendation for users recycling their old devices for that use case? Should we create MagicMirrorLegacyDevices fork? Are we adding additional build step for legacy devices users? Maybe another docker image since most of older devices users are running host-client setup anyways? |
You can always run an older version of MagicMirror. |
Where will I get older version of magic mirror sorry for this silly
question but I am new to this
…On Wed, 1 Apr 2020, 13:13 Michael Teeuw, ***@***.***> wrote:
You can always run an older version of MagicMirror.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1908 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJTYL3T65H2ZXVPRRC5KXH3RKLWBZANCNFSM4KMJ3XWQ>
.
|
Closing this for now because I don't see where we go with this. Feel free to reopen. |
fixes #1897