W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2004

Re: Comments on DOM Level 3 Core Nov-03 CR

From: Andrew Clover <and-w3@doxdesk.com>
Date: Tue, 6 Jan 2004 22:53:10 +0000
To: www-dom@w3.org
Message-ID: <20040106225310.GC488@doxdesk.com>

Philippe Le Hegaret <plh@w3.org> wrote:

> This behavior has been in the DOM since DOM Level 2. DOM Level 2 Events
> does indicate, when using EventListener: [...]

Hmm. True for EventListener, but not for NodeFilter, which LSSerializerFilter
explicitly inherits from. (Traversal section 1.1.2.2.)

Perhaps from previous behaviour it makes sense that UserDataHandler.handle
should have exceptions swallowed, since it is rather like an EventListener
(eg. there may also be other UserDataHandlers that still wish to receive
handle calls in the case of the handler throwing an exception). For
LS*Filter though I'd consider the existing NodeFilter model far more
appropriate.

> True enough, ignoring exceptions can render your
> implementation unstable, but the intent is to prevent DOM applications
> to rely on behaviors resulting from an exception thrown in the handler.

Fully agree, but I'd expect such a reliance situation to occur more readily
with the exceptions-swallowed model than the exceptions-propagated model - it
is possible a faulty filter throwing execeptions would go entirely unnoticed.

Oh, and I'd like to Ack-Agreement issues andrew1-andrew4 also. Cheers!

-- 
Andrew Clover
mailto:and@doxdesk.com
http://www.doxdesk.com/
Received on Tuesday, 6 January 2004 18:18:38 GMT

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