It appears that on an element having more than one event handlers (on* attributes), the second one is not correctly registered but the first and third ones are. I haven't tried with more than 3.
Test case: https://codepen.io/stephanebisson/pen/yLrWgzL?editors=1010