Second event handler not correctly registered
stephanebisson opened this issue · comments
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
The issue causing the second item to be skipped is that the previous attributes are being removed while the loop is still running. To fix this, we should wait until after the loop has finished to remove the attributes.
Lines 187 to 194 in ca459f0
Fixed!