Any JavaScript framework to target the standard cross-platform JS and DOM?

I'm trying to find any JavaScript frameworks whose sole purpose is to standardize DOM and JavaScript across all browsers.

What I'm not looking for is frameworks that create their own API to solve these common problems. I want something that will allow me to call, for example, myElement.dispatchEvent ("click") in Internet Explorer. Not that it creates its own observer template with its own API.

At the moment, the closest thing I can find is www.flowjs.com, it looks good and covers a lot, but it is missing document.createEvent and a few other functions and does not contain contact information from the author.

Hello,

Chris

+1


source to share


4 answers


Dean Edwards Base2 might be what you are looking for. You can find Diego Perini NWEvents as well ...



+3


source


While it has its own API, Prototype tries to do just that (at least in part). If you are using Firebug, you may notice a lot of methods added to the DOM to make the DOM the same across all browsers.

I know this is not exactly what you were looking for, but this is a halfway solution.



Also, in some browsers it may not be possible to override some of the DOM elements. Try it window.alert = function(i) {};

and it will cause errors in some browsers.

0


source


There is an Ample SDK that contains DOM-Events / DOM-Core and many other standards. While this is less well known, I would highly recommend looking into it.

Also note: myElement.dispatchEvent ("click") is not standard.

0


source


Full description of JS libraries that standardize JS and DOM across different browsers:

WARNING: These libraries may be larger than you expect. Actually there is a lot of code required for IE6 / IE7.

0


source







All Articles