In addition, how (if at all) will I be able to find the possible prefix of the event through this constructor?
I suppose that’s a Catch-22, you can’t take any info from it until it is fired. Makes one think how do events actually work? As far as I get it, the browser “detects” changes then sends the info to
window which creates an event and usually then starts listening for it. But not in all cases:
Apparently the events themselves are also part of the window object so ‘ontransitionend’ in window will do the same check.
That seems to only be true with Webkit related browsers. Firefox and IE don’t have this global event. So that’s not gonna help a lot.
Trickier than I thought, hence likely the creation of that dirty extra element in the accepted feature test…