W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2010

[whatwg] Window events that bubble?

From: Jonas Sicking <jonas@sicking.cc>
Date: Mon, 17 May 2010 15:12:02 -0700
Message-ID: <AANLkTik7OtQec-EMya1bcmWPyXjzQCQJFfqZV3vd32BC@mail.gmail.com>
On Mon, May 17, 2010 at 3:07 PM, David Flanagan <david at davidflanagan.com> wrote:
> Section 6.5.9 "History Traversal" defines popstate and hashchange events
> ?that are fired on the Window object. It specifies that these events *must*
> bubble. ?Where should they bubble to? ?What does it mean to bubble up from a
> Window? ?These events aren't going across frames, are they?
> Is the specification that they must bubble a formality because existing
> implementations set the bubbles property of the Event object to true? Or
> does it actually have some impact on event propagation?

My understanding is that the only noticable effect of defining that
these effects bubble is that their bubbles property is set to true.
Same thing happens to bubbling events fired at an XMLHttpRequest

Of course, in a theoretical future where we'd add an object "above"
the Window object, these events would bubble to that object. But
that's not the case today as no such object exists.

/ Jonas
Received on Monday, 17 May 2010 15:12:02 UTC

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