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

Range.detach() questions

From: David Flanagan <david@oreilly.com>
Date: Tue, 14 Aug 2001 11:42:54 -0700
Message-Id: <200108141842.LAA02007@oxymoron.oreilly.com>
To: www-dom@w3.org

I'm trying to understand the detach() method of the Range interface.
Any insight is appreciated!

In languages that support garbage collection, such as Java and
JavaScript, is it safe to allow a Range object to be garbage collected
even if detach() has never been called?

May implementations in languages without automatic memory management
require that the detach() method must be called before a Range object is
freed up?

Does the detach() method exist because the implementation must keep
track of all Range objects in a document so that they may be altered as
necessary by document insertions and deletions?  

	  David Flanagan
Received on Tuesday, 14 August 2001 15:37:14 GMT

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