News for hackers. Stuff that matters.
Re:10th Anniversary of JQuery by kedean on Thursday January 14, 2016 @01:55PM (#10903493)
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.
Re:10th Anniversary of JQuery by acdha on Thursday January 14, 2016 @02:37PM (#10903827)
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:

http://quirksmode.org/dom/events/click.html

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.
Re:10th Anniversary of JQuery by untog on Thursday January 14, 2016 @02:52PM (#10903938)
Until you want to add more than one onclick event.