W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2008

[whatwg] Scroll events + bubbling?

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Mon, 14 Jul 2008 12:39:05 -0700
Message-ID: <c9e12660807141239w4607e93fp28b9668cc0a61611@mail.gmail.com>
On Mon, Jul 14, 2008 at 11:36 AM, Brady Eidson <beidson at apple.com> wrote:
> From the current spec:
> "onscroll - Must be invoked whenever a scroll event is targeted at or
> bubbles through the element."
>

Link to the spec: http://www.whatwg.org/specs/web-apps/current-work/#onscroll

> Yet IE and Firefox don't, and WebKit is currently considering matching them
> for compatibility...  it seems that folks agree scroll events shouldn't
> bubble.
>

Please post a testcase.

Also, consider that many legacy events, when registered in "legacy'
attribute fashion, will not bubble.

// captures bubbled change.
aForm.addEventListener("change", formChanged, false);

// doesn't capture bubbled change.
aForm.onchange = attributeChanged;

I posted similar comments/auestions on teh DOM mailing list, but that
list may habe fallen out of fashion (not sure if anyone subscribes to
that anymore).

> Can we update the spec to match this?
>

Can you post a testcase contrasting addEventListener, attribute
assignment, and results in browsers?

Garrett

> ~Brady
>
Received on Monday, 14 July 2008 12:39:05 UTC

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