W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2013

Re: [whatwg] Should <video controls> generate click events?

From: Edward O'Connor <eoconnor@apple.com>
Date: Tue, 20 Aug 2013 14:52:39 -0700
To: whatwg@whatwg.org
Message-id: <m2mwocxc60.fsf@eoconnor.apple.com>
Hi,

>>> [W]e do want users to be able to bring up the native controls via a
>>> context menu and be able to use them regardless of what the page
>>> does in its event handlers. So, I request that the spec be explicit
>>> that interacting with the video controls does not cause the normal
>>> script-visible events to be fired.
>[…]
>> I've made the spec say this is a valid (and recommended)
>> implemenation strategy.
> 
> The change <http://html5.org/r/8134> looks good to me, thanks!

I don't see why <video controls> should be any different than, say,
<button> here. If I install an event handler on an ancestor of an
element, I'm able to capture events and prevent the descendent element
from seeing them.

A UI which allows users to activate a control "regardless of what the
page does in its event handlers" is a general feature not specific to
media elements—and may be worth considering—but we shouldn't make a
one-off exception to the basic model of DOM events just for <video>.


Ted
Received on Tuesday, 20 August 2013 21:53:09 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:23 UTC