W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2000

Questions about import and Multithreading issues.

From: Keith W. Boone <kboone@ebt.com>
Date: Thu, 13 Apr 2000 17:14:36 -0400
To: <www-dom@w3.org>
Message-ID: <000101bfa58d$4616bbd0$767770c6@ebt.com>

When deeply importing a Node from another DOM Implementation, it is possible
in a multi-threaded environment for children to change while the import is
going on.  The only way that I can correctly implement a deep importNode()
is to first perform a deep clone of the imported node, which will give me a
copy that I control, and then perform the recursive import.  This
implementation creates a bunch of short-lived temporary objects in a Java
programming environment.

I do not believe that a conforming implementation should be required to
attempt this.  Instead, I think that this sort of use should not be
attempted by applications.  Applications that attempt to modify nodes in one
thread while importing them in another should get implementation dependent
behavior, and this should be clearly stated in the specification.

Received on Thursday, 13 April 2000 17:14:58 UTC

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