W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2011

[whatwg] Why are media event handlers defined on HTMLElement instead of HTMLMediaElement

From: Philip Jägenstedt <philipj@opera.com>
Date: Wed, 16 Feb 2011 13:09:06 +0100
Message-ID: <op.vqzv1gh4sr6mfa@kirk>
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  
>> something?
>>
>
> Sorry, I meant HTMLDocument:
>
> http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#documents
>
> 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.

-- 
Philip J?genstedt
Core Developer
Opera Software
Received on Wednesday, 16 February 2011 04:09:06 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:30 UTC