W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2008

Re: Change Event, Bubbling and IE8

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Fri, 11 Jul 2008 16:12:54 -0700
Message-ID: <c9e12660807111612v6e6bbabn3237c5a9d771d602@mail.gmail.com>
To: "Joćo Eiras" <joao.eiras@gmail.com>
Cc: www-dom@w3.org

On Fri, Jul 11, 2008 at 1:32 AM, Joćo Eiras <joao.eiras@gmail.com> wrote:
>> Then the events should not have fired in bubbling phase. But they did fire in bubbling phase in FF and Webkit. That's a bug, isn't it?

With the updated example, using useCapture=false, I believe that the
change events should bubble up to the FORM, through the FIELDSET, and
that the submit event should bubble up to document (even though FORM
doesn't support "change" and document doesn't support "submit"). Is my
understanding correct? Please confirm.

Also, if the answer is "yes, they should" then what about IE? Should
the MSIE event be expected to bubble?

Does having a broken event model hamper development productivity?

Can this be answered fairly by looking at existing web scripts?

Is it reasonable to try to apply parts of the DOM Event standard to
MSIE's event argument? Or should the entire event model be regarded as
completely incompatible?

I am asking because Microsoft refuses to implement addEventListener,
and this seems to be including anything related to the different event
bug: https://connect.microsoft.com/IE/feedback/ViewFeedback.aspx?FeedbackID=333958

  onchange: http://msdn.microsoft.com/en-us/library/ms536912(VS.85).aspx
  onsubmit: http://msdn.microsoft.com/en-us/library/ms536972.aspx

Legacy events onchange and onsubmit do not bubble as registered in the
DOM 0 (I'm not suggesting this change). In FF and Saf, (e.g.
form.onchange = callback) with one caveat: In FF and Saf, "change"
event of a SELECT will bubble up.

However, ISTM that if Microsoft were to add proper support for DOM
Events, with callbacks registered via addEventListener, it would be
possible to avoid conflict with legacy events and callbacks registered
via attachEvent, and allow developers to use the standard DOM Event

Is there a test suite for events? Searching the web, I could not find
an EcmaScript events test suite.


[snip of previous top-posted msg]
Received on Friday, 11 July 2008 23:13:31 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:14 UTC