Any JavaScript library that makes a CSS3 / HTML5 site work in all browsers, including IE6-8?

Is there any JavaScript library that makes the CSS3/HTML5 website fully work in all browsers, including IE6-8?

Latest eCSStener and Modernizr does not work CSS3 on IE6-8 .

+4
source share
3 answers

Not.

CSS 3 and HTML 5 (none of which is finished yet) do some things that are easier and some things that are impossible.

You have already found libraries for simulating bits that make it easier, but you cannot make it impossible to use the JavaScript library. HTML 4 / DOM 1/2/3 / CSS 2.1 simply does not provide methods for storing large amounts of data between sessions , running background processes, and many other things.

Some things can be modeled, but not without side effects. For example, you can duplicate text and use positioning to fake text-shadow , but then readers will read the content twice.

You need to think very carefully about what new technologies you want and build your pages in accordance with the principles of progressive improvement.

+3
source

There HTML5 Now , although it has not seen much activity recently and is probably not ready for use in production. This is the same guy who wrote the IE7.js library .

At the moment, you are probably better off limiting the amount of CSS3 and HTML5 that you use, and then looking for specific ways to enable cross-browser support for these bits.

+2
source

If you are referring to a problem with displaying HTML5 elements such as <header> , just add a simple javascript hack to the <head> page:

 <script type="text/javascript"> document.createElement('header'); document.createElement('article'); // ...and so on </script> 
+1
source

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


All Articles