3 ms·
What I'd really like is something that fixes browser quirks and provides a consistent API that's identical to the ecmascript standard, instead of something enti
by scarmig 15y ago
What I'd really like is something that fixes browser quirks and provides a consistent API that's identical to the ecmascript standard, instead of something entirely new.
Then have a jQuery-like API when it's useful or improves clarity.
- stdbrouw 15y agoNitpick: you probably mean the HTML/HTML5 DOM API, because the ECMAscript standard only regulates the language, not the host (a.k.a. browser). There are small differences in how browsers run JavaScript or what version of JavaScript they run, but those are much less painful to deal with than DOM API and other API quirks.
- MatthewPhillips 15y agoYou're talking about polyfills. This is increasingly the way to do quirk-normalization. One example of the Function.prototype.bind polyfill on MDN: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/bind https://developer.mozilla.org/en/JavaScript/Reference/Global....