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

Re: A few questions

From: Arnaud Le Hors <lehors@w3.org>
Date: Wed, 20 May 1998 10:20:44 +0200
Message-ID: <3562925C.183282F@w3.org>
To: Chris Hubick <maillist@chris.hubick.com>
CC: www-dom@w3.org
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
> or delete something, it's your job to synchronize the state of your
> application, this should be outside the scope of DOM.  Everyone
> understands the behavior of a two way linked list, why can't DOM be that
> simple?

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().
-- 
Arnaud Le Hors - W3C, User Interface Domain - www.w3.org/People/Arnaud
Received on Wednesday, 20 May 1998 04:21:48 GMT

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