- From: Garrett Smith <dhtmlkitchen@gmail.com>
- Date: Fri, 11 Jul 2008 16:12:54 -0700
- 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 model. bug: https://connect.microsoft.com/IE/feedback/ViewFeedback.aspx?FeedbackID=333958 http://blogs.msdn.com/ie/archive/2008/04/10/html-and-dom-standards-compliance-in-ie8-beta-1.aspx#8386501 docs 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 model http://www.w3.org/TR/DOM-Level-2-Events/events.html Is there a test suite for events? Searching the web, I could not find an EcmaScript events test suite. Garrett [snip of previous top-posted msg]
Received on Friday, 11 July 2008 23:13:31 UTC