News for hackers. Stuff that matters.
Re:From jQuery to JavaScript and back again by masklinn on Friday February 08, 2013 @01:20PM (#5189282)
> jQuery exists for one simple reason : deal with DOM inconsistencies between browsers, and it works.

It exists for a second reason as well: make DOM interaction not suck. Because they suck hard out of the box.

> Why is it hard to work with the DOM ? because it is STRONGLY and staticaly typed !

Not really. It's because it's defined through a very restrictive abstract language which assumes almost nothing about the implementation language (basically, that the implementation language has method calls and a name can map to multiple arities somehow). That gives an API which can be implemented on pretty much any object-oriented language, but will also suck on pretty much all of then.

> querySelector to until it was made a standard

Uh... no it was not, if you want to give MS credit where credit is due you can give them XMLHttpRequest, but definitely not querySelector which is a WhatWG brainchild (the first revisions were by Anne van Kesteren and Lachlan Hunt). MSIE didn't get querySelector until IE8 (March 2009), Webkit landed it in December 2007 and Gecko in July 2008.

Also, innerHTML was standardized as part of the HTML5 effort, as well as a number of ther "DHTML" features.

And while you give praise to MS, don't forget to criticize them for e.g. not having implemented the DOM Events API until IE9.

There are no comments on this comment yet.