[whatwg] <a onlyreplace>

Nelson Menezes flying.mushroom at gmail.com
Sun Oct 18 10:20:27 PDT 2009


2009/10/18 Tab Atkins Jr. <jackalmage at gmail.com>:
> As long as the event bubbles, you can always just listen at the
> document root and then check event.target to see who got updated.
> That way you don't have to wait, nor do you have to know which
> specific bits are getting replaced.

You would want the event to fire once, though, regardless of how many
targets are being replaced. Otherwise you won't be able to distinguish
3 events generated by one response with content for #div1,#div2, and
#div3. Event.target should be the original <a> or <form> element, or
the window object if the request originated via scripting.

Nelson Menezes
http://fittopage.org


More information about the whatwg mailing list