W3C home > Mailing lists > Public > www-dom@w3.org > April to June 1998

Re: A few questions

From: Chris Hubick <maillist@chris.hubick.com>
Date: Wed, 20 May 1998 01:23:04 +0000 (GMT)
To: www-dom@w3.org
Message-ID: <Pine.LNX.3.96.980520012047.10942C-100000@chris.hubick.com>
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 GMT

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