Re:10th Anniversary of JQuery
by frik on Thursday January 14, 2016 @01:44PM
(#10903411)
Not weak, but every browser had their own non spec API functions to traverse the DOM in various ways. JQuery offered an easier cross browser API, whereas otherwise one would have to handle various bugs and different API functions.
[ Parent
| on HN ]
Particularly events. I think there are technically 3 different ways to create event handlers, one for each of the major js engines of the early 2000's.
Re:10th Anniversary of JQuery
by TazeTSchnitzel on Thursday January 14, 2016 @01:57PM
(#10903510)
Listeners are complicated, but .onclick and friends work everywhere and always have.
For the simplest cases, yes, but even there you could easily find oddities with things like cancellation, bubbling, timing with regards to other events, support for various element types, etc.
Here's a whole list just for click, which is probably the most standardized event handler, and doesn't even go back before the IE5.5 era:
Re:10th Anniversary of JQuery
by LoSboccacc on Thursday January 14, 2016 @04:15PM
(#10904538)
to double down, touch events on mobile browsers are in a different order than mouse event in regards of onclicks, so that a touchend and mouseup fire at the opposite side of the click event on some mobile browser but not all.