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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 21 Aug 2013 07:53:02 -0700
Message-ID: <CAAWBYDA0sPB2K-2DNO_TFrF38_Z3_jfvB_Se9AEqu3Mpk7GNYA@mail.gmail.com>
To: Rick Waldron <waldron.rick@gmail.com>
Cc: "whatwg@lists.whatwg.org" <whatwg@lists.whatwg.org>, Brian Chirls <brian.chirls@gmail.com>, Simon Pieters <simonp@opera.com>
On Wed, Aug 21, 2013 at 7:43 AM, Rick Waldron <waldron.rick@gmail.com> wrote:
> Ideally the event.target is defined more specifically, eg. if event objects
> from clicks (and others) on controls had an event.target that was the
> actual controls element.

What "actual controls element"?  There is no such thing.

Again, events based on the actual actions are the way to go.  If
you're trying to track user's behavior in some way, what happens if
you're listening for clicks on the controls but they instead do a
right-click on the video and select "pause" from there?  The scenario
you're trying to defend is broken from the start. :/

~TJ
Received on Wednesday, 21 August 2013 14:53:48 UTC

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