W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2010

Re: [DOM Level 3 Events] Ordering event handlers registered by different means

From: Andrew Oakley <andrew@ado.is-a-geek.net>
Date: Mon, 27 Sep 2010 11:26:49 +0100
Message-ID: <4CA07169.4090405@ado.is-a-geek.net>
To: Sergey Ilinsky <sergey@ilinsky.com>
CC: www-dom@w3.org
On 24/09/10 20:09, Sergey Ilinsky wrote:
> Has the issue of ordering execution of handlers added by the following means
> been addressed?
> a) node.oneventx = f;
> b) node.setAttribute("eventx", f)
> c) node.addEventListener("eventx", f)
> 
> There is a chance DOM Events is not a right place to specify this behaviour
> but can the author then make sure this is specified somewhere else so that
> the modern browsers would implement same behaviour?

This is specified by HTML5,  7.1.6:
> Event handlers therefore always fire before event listeners attached using addEventListener().

Methods (a) and (b) set the same event handler so only one of these can
exist at any time.

-- 
Andrew Oakley
Received on Monday, 27 September 2010 10:30:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:05 GMT