This project is archived and is in readonly mode.

#360 ✓ invalid
Alastair Tse

New Native Events to add to Element.NativeEvents

Reported by Alastair Tse | September 4th, 2010 @ 11:30 PM

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

<audio src="some.mp3" id="player"></audio>

$('player').addEvent('play', function(e) { alert('play'); });

and the play callback will never be called .

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The MooTools Extensions

Shared Ticket Bins

People watching this ticket

Pages