W3C home > Mailing lists > Public > www-dom@w3.org > October to December 1998

Re: Walking the DOM (was: XML APIs)

From: Claude Zervas <claude@utlco.com>
Date: Tue, 03 Nov 1998 17:09:42 -0800
Message-Id: <199811040116.UAA25593@www10.w3.org>
To: www-dom@w3.org
Again, I think that in light of all the severe disagreements about NodeList
'liveness'
and iterator behaviour there should be a branching of the spec for
applications that
are not designed for naive script writers and where performance is of foremost
importance.

This 'server-or-whatever' DOM would have at least the following
characteristics:

1. NodeLists do not need to be 'live'

2. Node.Next/PreviousSibling attributes are deprecated or are simply
convenience methods that may (or may not) be horribly slow.

3. Iterators are introduced and provide behaviour that may
be undefined if the tree is modified underneath them.
I would also be ok with the idea that the iterators simply
throw an exception if the tree is mutated.

4. EntityReferences are really references and no copying is done.

It would also be nice to have a standard  DOM factory for creating objects
outside
of the context of a document. This is very useful for creating partial
documents that
can be used in templates, etc. (I'm thinking HTML DOM here).

Regards,
Claude Zervas
UNIPLANET
Received on Tuesday, 3 November 1998 20:16:51 GMT

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