[whatwg] MediaController events

Hi,

The MediaController interface in the latest video element
specification [1] has a number of events, for example:
           attribute EventHandler onemptied;
           attribute EventHandler onloadedmetadata;
           attribute EventHandler onloadeddata;

However, the MediaController interface does not inherit EventTarget
[2]. Shouldn't it be added?

The current WebKit implementation seems to subclass EventTarget so
that addEventListener() needs to be used to handle such events.
This also means that no onemptied attribute is available on WebKit
MediaController interface.

The WorkerGlobalScope specification [3] for example clearly inherits
EventTarget.

[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#mediacontroller
[2] http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-EventTarget
[3] http://www.whatwg.org/specs/web-apps/current-work/#workerglobalscope

Kr,
--
Christophe Dumez
Linux Software Engineer, PhD
Intel Finland Oy - Open Source Technology Center

Received on Friday, 24 August 2012 07:50:18 UTC