mootools/mootools-core — Issue #2222: New Native Events to add to Element.NativeEvents
Author: ibolmo
Created: 2012-01-19 08:21:03+00:00
State: open
Labels: enhancement

(from [Lighthouse](https://mootools.lighthouseapp.com/projects/24057/tickets/360-new-native-events-to-add-to-elementnativeevents))

The new HTML5 Audio and Video tags have new native events that cannot be listened to using Element.addEvent() because they are not in the Elements.NativeEvents array.

For the full list of events, see the MDC table here:

https://developer.mozilla.org/en/using_audio_and_video_in_firefox#M...

It looks like this is the file that needs to include these new events:

http://github.com/mootools/mootools-core/blob/master/Source/Element...

You can reproduce this by having an audio tag and trying to call something like

$('player').addEvent('play', function(e) { alert('play'); });
and the play callback will never be called .