[Bug 17425] Inconsistency of event handler idl attributes

https://www.w3.org/Bugs/Public/show_bug.cgi?id=17425

--- Comment #2 from Marcos Caceres <w3c@marcosc.com> 2012-06-06 10:17:39 UTC ---
(In reply to comment #1)
> There doesn't seem to be much point in using objects here given that you can
> put attributes on Function objects.

Yes, I agree. But then why do we need to define EventListener in DOM4 instead
of just using Function? My concern is simply that we should use one or the
other. Supporting two ways of doing the same thing has led to confusion in
implementations (Opera's implementation for instance, which supports
EventListener on some attributes, but not on others - though Anne claims
they've now fixed this internally). Also, Chrome supports assigning either an
Object or a Function.  

Supporting EventListener on event handler idl attributes would give us the best
of both worlds (you can use a function or an object)... but that might upset
non-webkit browsers. 

Having said that, I don't mind if we close this bug and keep the current
inconsistant behaviour. I just wanted to raise it as I ran into this while I
was creating some tests for a test suite.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 6 June 2012 10:17:49 UTC