2 ms·
I think browser DOM should just embed a native implementation of jQuery.
by est 15y ago
I think browser DOM should just embed a native implementation of jQuery.
- mappu 15y agoThen you'd be stuck supporting old versions of jQuery. Why not have it the other way around? Have the webpage define the DOM implementation. Taken to its extremes, that would basically solve backward-compatibility.
- est 15y ago> Then you'd be stuck supporting old versions of jQuery. No, support only core functions of jQuery. All of them. You know what is old version? Stuff like getElementById() .
- frobozz 15y agoInconsistency across browsers was one of the things that inspired the development of the various js libraries we use today, including jQuery. Despite the existence of standards (even standards with comprehensive test cases), they are needed to abstract away the differences between the IE, Firefox, Safari etc DOMs. If browsers were to embed a native implementation of jQuery, you'd then have to have some kind of meta-jQuery library to abstract away the differences between IE jQuery, Safari jQuery and Firefox jQuery (etc).