-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
(BC) Removed IE compatibility #1073
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Throw the IE away :D
Oops, I clicked "Ready for review" accidentally... Should this still be in draft status for some reason? |
? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Next step: Let's get rid of Prototype.js and use plain JS instead :)
The functions provided by prototype are now all supported natively. Ok, fetch
is not yet supported by IE11 but we can introduce polyfills for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some methods specific to IE in Mage_Page_Block_Html_Head
that could be removed too :
addCssIe
addJsIe
@luigifab could you please rebase/fix conflicting file? |
So sorry for my bad commits some days ago (with xmlconnect changes). I removed |
Let's not do this, it will break BC and honestly I don't think there is much performance impact from using them even though it would not be considered good practice these days. |
The decorate table function has a notable impact, as it can force a redraw of many page parts, after this new classes are applied. But Iam absolutely against removing it. Its not only IE what is affected here, but all browsers, as the themes uses this classes and likely also many css and js people wrote over the years. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, no change for decorate
functions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent work @luigifab !
I'd love to see this merged |
small warning in advance: this PR will get at least partially reverted soon, as it breaks some usecases involving the |
We may only have reports if it is used as an Internet Explorer browser. At this time it is official that IE 11 will be removed by June 15, 2022 from all Windows distributions. If I look at the statistics, those who still use IE are very few v11 mainly and a few v9. The market is already divided between Chrome, Edge, Firefox, Brave, Vivaldi, Opera, Safari. But I agree with @Flyingmana if it is merged then it needs to be tested more so as not to create any issues. |
the broken usecase is unrelated to Internet Explorer |
On first reading of the code almost all removed refer to IE related files. @Flyingmana could you please indicate where you identified that problems could occur? |
Hello I have read a little about the reasons for these changes. With reference to the bug reported # 1796 I want to clarify that all the browsers I tested (chrome, firefox, opera, edge) do not load the css file of the customized theme the custom theme is a direct descendant of RWD apart from the css file and some modifications of some files the classes have not been touched in any way. the result is that themes other than rwd are not loaded. it's a huge problem ps: the problem recurs also with the 20.0.13 version of openmage |
I think that if you need that level of compatibility you should stay on v19 instead of v20. |
agree but don't you risk losing that initial idea of backwards compatibility to avoid losing years of work and energy poured into Magento 1? What real (performance) advantage have you obtained by making these changes that are causing problems for web designers? forgive me when you say i should stay on 19 what do you mean? as a user I fearlessly affirm that the instructions to upgrade magento from 19.4.x to? they are difficult to understand and therefore to apply. have i attempted to upgrade my magento version 1.9.4.4 to? but the results were disastrous. to get a working OpenMage (20.0.8) I had to perform a fresh installation and everything worked. if it is possible to switch from openmage 20.x to 19.x I kindly ask you to tell me where are the instructions to do it, thanks I don't think I'm the only one facing similar problems |
sorry, I add one last comment: if you don't want to fix the bug at least explain how to fix it to us poor web designers. and I repeat .... as far as I'm concerned I take the RWD clone and change practically only the css and the position of some php nodes based on where I want them to appear .... Thank you |
backward compatibility is always assured by the v19 branch, which is still maintained as promised ;-) the benefits is that we can have a maintained code, not thousands of files that none of the contributors know/use anymore that just lay there forever, regarding super old technologies that tie us back to the past. to switch to the v19 it depends how you installed it in the first place, if you copied the files like it was usually done, then simply overwrite everything with the new/old version, it's not gonna be super clean but still.. |
Thanks for the reply my situation is this: Ubuntu server 20.04 OpenMage 20.0.8 installed via composer and currently updated via composer to 20.0.12. so: how should I do? consider me as a child to accompany by the hand. Thank you |
if you're doing it with composer simply rebuild the composer.json file, delete the composer.lock and the vendor folder and the "composer install" |
Description
I suggest to kill IE 5 / 6 / 7 / 8 / 9 compatibility.
I suggest also to remove the
if
tag foraddItem
ofMage_Page_Block_Html_Head
.I don't suggest to maintain compatibility only with 3 latest recent versions of all major browsers.
10,840 deletions, I like that, and I hate IE.
Contribution checklist