JavaScript Compatibility

The other day I was writing a function in JavaScript. Alright, before you say it – yes, it was broken in IE7/8. However, sometimes when you use common functions like trim and innerText¬†you don’t really think about compatibility… especially if you’re an analyst. That’s what we call “knowing enough JavaScript to be dangerous.” Now normally I use jQuery and for all intents and purposes that’s fine. What if you need to use a JS object before jQuery loads, though? Let me make this simple. Use these 2 sites:

http://caniuse.com/ (HTML, CSS, JS)

http://www.quirksmode.org/dom/w3c_html.html (Messing with DOM elements)

Leave a Comment