Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: click in mp4 Date: Tue, 09 Dec 2014 19:29:17 +0100 Organization: PointedEars Software (PES) Lines: 21 Message-ID: <2025585.Jv9v2AemPM@PointedEars.de> References: <874mt5m6zn.fsf@bsb.me.uk> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1418149758 14753 eJwVy8ERwDAIA7CVcAyGjkPosf8IveqvoKBJV8hjY2Hddc7Ke08jde8YSELvBGaMTNCe+lP5BxBUECM= (9 Dec 2014 18:29:18 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Tue, 9 Dec 2014 18:29:18 +0000 (UTC) User-Agent: KNode/4.14.2 X-User-ID: eJwFwYEBwDAEBMCVKB7jJPL2H6F3YVBMOgIeG2t32Dp3LzkHloOivIhaep8v6ZKNOa9aVGll3vUFTLVF7Ad4JhUP Cancel-Lock: sha1:eCPWM2OyGdhemrjKdezbL2GJHdY= X-NNTP-Posting-Host: eJwNw4ENwDAIA7CXBiG0nNPC8v8JmyUTadkrkhkUJbLuMxjf+aLVMYbt/q9C1B1bB+qG8ajzAxdXEQc= Xref: csiph.com comp.lang.javascript:26294 Ben Bacarisse wrote: > […] it works (as far as I know) the same as for any other element: > add an [event] listener for the element, and it will be called with the > event as an argument. If you exclude software that uses MSHTML 8 or earlier, or MSHTML 9 in Compatibility Mode, and similarly outdated software that does not implement W3C DOM Level 2+ Events, then you are almost correct: one would add an event listener _to_ the element *for* an event *type*, and it is a *reference* to an event object that is passed as argument value. AFAIK there is no remotely HTML5-compliant software (in this case: one that supports the “video” element as specified) that does not implement W3C DOM Level 2+ Events. -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.