Re: Walking the DOM (was: XML APIs)

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 UTC