[whatwg] Why are media event handlers defined on HTMLElement instead of HTMLMediaElement
philipj at opera.com
Wed Feb 16 04:09:06 PST 2011
On Tue, 15 Feb 2011 23:54:10 +0100, David Flanagan
<david at davidflanagan.com> wrote:
> On 02/15/2011 12:44 PM, Philip Jägenstedt wrote:
>> On Tue, 15 Feb 2011 19:13:26 +0100, David Flanagan
>> <david at davidflanagan.com> wrote:
>>> What about Document and Window? What's the justification for defining
>>> the media event handler attributes on those objects?
>> Huh, it is on Window, I hadn't seen that before. They were added in
>> http://html5.org/r/3005 but I can't say I understand why.
>> I can't see it on Document in Web DOM Core, though, am I missing
> Sorry, I meant HTMLDocument:
> Looks like they were added to HTMLDocument in the same change set.
Well, I really don't know. My best guess is for simplicity, that any
interface that has event listeners simply has all event listeners.
Hopefully someone with more of a clue will explain.
More information about the whatwg