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
Received on Thursday, 7 May 1998 11:34:47 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:04 UTC