📜 ⬆️ ⬇️

Anti-IE

I think these lines will strike at the heart of everyone who has ever tried to do typesetting and knows what cross-browser compatibility is. For those who are less familiar with the topic, the following part of the text is presented.

The share of Internet Explorer in the browser market is about 80% , moreover, a year ago it was at the level of 90%. This is the most popular browser. Why? Is he the most comfortable? Most of those who have ever used other browsers do not think so. Is he the safest? Information IT agencies are teeming with messages about “another hole in IE”. This is a fact with which even the most persistent will agree. Is it functional? In terms of functionality, only Firefox with plugins can surpass Opera. So why? Yes, it's all the same - it is turned on by default in Windows OS and Microsoft, which is heated on the rest of the woods, occupies a leading position in the market. Most users simply do not represent an alternative, Internet Explorer is the Internet, there is no other need. Well, the lyrics aside - the article is not about that.

Use and enjoy, what's the problem? Interfere with someone? Do not laugh, please: “Yes! You are interfering! Namely, you greatly complicate the life of website developers, including JavaScript / AJAX, to developers and layout designers.
')
The fact is that IE is not only awfully inconvenient, the most insecure, slow, non-functional browser, but it also does not support standards. In an interesting way you can read about it here . For all browsers, the same HTML / CSS code is written, and logically, all of them should display and execute it in the same uniform way so that there is no confusion. To do this, there is the organization "W3C Consortium", which is precisely that and is engaged in - standardization of technology, a description of where and how it should behave. But bad luck, these standards at least try to support all popular browsers: Firefox, Opera, Konqueror, Safari, but not IE. Not IE, whose share is 80%! What we get in the end? On the example of layout. We need to achieve a uniform display of xHTML / CSS code in browsers. It is not so difficult to do, because if the layout is displayed correctly in Firefox, then with a 95% probability, it will also be displayed in Opera. In IE - all goes to hell. Fix it in IE - breaks in other browsers. So, cross-browser compatibility is in fact called the ability to make a layout such that it is consistently displayed in all adequate browsers and in IE at the same time.

In order to at least slightly relax this headache, many ways have been collected, with the help of which you can write a kind of “two codes” for browsers (these are conditional comments - a legalized feature of IE itself, underscores and comments in styles, “* html” and so on ). Characteristically, these holes change from version to version - some close, others appear, and thus you can write code for different versions of IE. But all this represents a big headache for developers. And there are situations when up to 1/2 of the time spent on the layout, went to ensure the “compatibility” of the layout. There were quite shocking situations when, when the site was submitted to the customer, it did not display an interesting JavaScript menu. As it turned out, he had IE 5.0, his convictions did not help, and before he achieved results, he had to spend a lot of time.

In order not to be unfounded, here are some of the most unpleasant facts for me:

Source: https://habr.com/ru/post/15808/


All Articles