W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2009

[whatwg] <a onlyreplace>

From: Nelson Menezes <flying.mushroom@gmail.com>
Date: Sun, 18 Oct 2009 19:20:27 +0200
Message-ID: <a440ea080910181020l4c079021yf746d99e642c7794@mail.gmail.com>
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
Received on Sunday, 18 October 2009 10:20:27 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:18 UTC