Re: A few questions

On Wed, 20 May 1998, Arnaud Le Hors wrote:

> Chris Hubick wrote:
> 
> > I think navigating the tree should be left to
> > the user.  Attributes and Children should be normal simple two way linked
> > lists, with the head of the list being the Node itself, and if you insert
> 
> Because we are not defining a data model but only an API that anyone
> should be able to map onto his/her own (possibly existing) data model.
> This means, for instance, that the user just doesn't have a clue on how
> to actually set a node's parent, but the DOM implementation does, and
> will do it underneath when the user calls insertChildNode().

	Ok, sure, so why not model that API after a linked list?
insertChildNode() appends the node to the end of the child linked list?
At least then you would have a familiar/proven/simple set of semantics.

---
Chris Hubick
mailto:chris@hubick.com
http://www.hubick.com/

Received on Wednesday, 20 May 1998 04:25:59 UTC