Home

Awesome

ES5 and DOM4 shim for all browsers with IE6 and IE7 support

based on:

Status: Stable Beta Demo Try it in IE7 (or in IE6 ¬_¬)! And take a look at the source

Goal

Caution !!!

Install

###(Note: if you don't need EXSTRAs use a.noexstras.js instead of a.js)

  1. First[!] add a.ie8.js in head section

       <!--[if IE 8]>
       <script src="a.ie8.js"></script>
       <![endif]-->
       
    
  2. Add a.js in head section

       <script src="a.js"></script>
    
  1. Add a.ie8.js and a.ielt8.js, a.js in head section

       <!--[if lt IE 8]>
       <script src="a.ielt8.js"></script>
       <![endif]-->
       <!--[if IE 8]>
       <script src="a.ie8.js"></script>
       <![endif]-->
       <script src="a.js"></script>
       
    
  2. Put a.ielt8.htc to the root of your site

EXSTRAs

IF INCLUDE_EXTRAS == false -> broken Object.defineProperty will be deleted

INCLUDE_EXTRAS:

DEBUG

Same-domain limitation

IE requires that the .htc behavior file must be in the same domain as the HTML page which uses it. If you try to load the behavior from a different domain, you will get an "Access Denied" error. Note that the domain must be exactly the same; that means that http://www.foo.com is a different domain than http://foo.com. http://css3pie.com/documentation/known-issues/#x-domain

Solve Same-domain limitation

Russian instruction in extra/SameDomainLimitation.SOLVE_RUS.odt

Temporary testing

http://jsperf.com/es5-dom-shim-test

Known issues:

  1. Lack of test cases
  2. Same-domain limitation (can be solve only on server)
  3. Incompatibility with http://code.google.com/p/ie7-js/ [working on it]

TODO

  1. Tests
  2. http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html (https://gist.github.com/1384398 & https://gist.github.com/1235332)

License

MIT