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
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

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

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
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).

Claude Zervas
Received on Tuesday, 3 November 1998 20:16:51 UTC

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