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

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

> 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
Received on Tuesday, 6 January 2004 18:18:38 UTC

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