W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > October 2011

[Bug 13684] Event handler attributes should reregister each time they are changed (?)

From: <bugzilla@jessica.w3.org>
Date: Fri, 07 Oct 2011 04:17:07 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1RC1rv-0006uO-RS@jessica.w3.org>

--- Comment #15 from Ian 'Hixie' Hickson <ian@hixie.ch> 2011-10-07 04:17:05 UTC ---
Search for the following text (also partly quoted in comment 5 above):

All event handlers on an object, whether an element or some other object, and
whether set to null or to a Function object, must be registered as event
listeners on the object when it is created, as if the addEventListener() method
on the object's EventTarget interface had been invoked, with the event type
(type argument) equal to the type corresponding to the event handler (the event
handler event type), the listener set to be a target and bubbling phase
listener (useCapture argument set to false), and the event listener itself
(listener argument) set to do nothing while the event handler's value is not a
Function object, and set to invoke the call() callback of the Function object
associated with the event handler otherwise.

Note: Event handlers therefore always run before event listeners attached using

Note: The listener argument is emphatically not the event handler itself.

If I understand correctly, this bug is about changing this so that instead of
this happening when the element is created, it happens when the event handler
is first set to something other than null.

Configure bugmail: http://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 Friday, 7 October 2011 04:17:09 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:02:05 UTC