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

Re: Hello and NodeIterator Revisited

From: Ray Whitmer <ray@corel.com>
Date: Thu, 07 May 1998 09:34:45 -0600
Message-ID: <3551D495.AA39D84C@corel.com>
To: www-dom@w3.org
Eric Vasilik wrote:

> Can you give me an example where gravity is not enough, and marker
> relativity makes sense?

Let me start with something simple.  Given a desired content model (a*,
b*, c*), I have a process that generates a's, b's and c's which I desire
to insert as I discover them, which is not the original order.  I create
three markers at the respective locations for the insertion of a, b, and
c.  What gravity do I assign so that no matter which I happen to
discover and insert first and which sets started out (or became) empty,
I do not wind up crossing the markers?  With relativity, the markers
just work once they are inserted in the correct order, even if
intervening objects disappear.

This type of situation happens regularly when I am manipulating a DOM,
in my experience.

Ray Whitmer
ray@corel.com
Received on Thursday, 7 May 1998 11:34:47 GMT

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