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

Re: Cancellability and two-phase events

From: John Ky <hand@syd.speednet.com.au>
Date: Tue, 26 Sep 2000 01:31:40 +1000
Message-ID: <010801c02705$b4783370$d000a8c0@NEWHOGGY>
To: <www-dom@w3.org>
> We can consider it for future levels of the DOM. We'd need to come up
> with serious use cases and requirements, and we'd need to find
> headcount to work on it.

Cancellable mutation events comes to mind.  For DOM structures which
responds to changes in itself - perhaps by modifying itself further - there
is a very strong need for consistency and constraint in the way event
listeners are invoked and they way they are allowed to behave.
Otherwise, all hell will break loose.

Cancellable mutation events aren't DOM 2 - so two phase events may or
may not yet be an issue.  I haven't thought much about them beyond this
situation, but I'm sure there would be uses elsewhere.

It certainly would be a future issue if not an issue now.

> (My instincts suggest that an application could implement its own
> two-phase system on top of our primitive events... but I haven't
> worked that out in detail, so I may be mistaken.)

I haven't been able to do this on the standard DOM 2 API, but that doesn't
mean it can't.  I would be very interested if anyone has a clue on how it
can be done.

-John
Received on Monday, 25 September 2000 10:32:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:47 GMT