W3C home > Mailing lists > Public > www-dom@w3.org > July to September 1999

Comment on DOM Level 2 § 6.1.3.

From: Dieter Köhler <dkoehler@ix.urz.uni-heidelberg.de>
Date: Thu, 02 Sep 1999 18:44:03 +0200
Message-ID: <37CEA953.E0099A3@ix.urz.uni-heidelberg.de>
To: "www-dom@w3.org" <www-dom@w3.org>
Consider the following very simple tree structure:

========
| root |  <-- TreeWalker.current
========
    |    =====
    |____| A |
         =====  =====
           |____| B |
                =====

To navigate this structure we use a TreeWalker whoes filter rejects
every C node.  Now we use the firstChild method of the TreeWalker twice
and arive at the B node.  After that we insert between the A and the B
node a C node. Now we have the following tree structure:

========
| root |
========
    |    =====
    |____| A |
         =====  =====
           |____| C |
                =====  =====
                  |____| B |  <-- TreeWalker.current
                       =====		

How should the TreeWalker behave when we call its parentNode method?

Similar problems may arise for the other methods of the TreeWalker.  The
problems get even worse, if the tree structure is more complicate or the
root node is altered.

=====================================================================
 Dieter Koehler, M. A. - dkoehler@ix.urz.uni-heidelberg.de
 Huehnerstein 1, D-69121 Heidelberg, +49(0)6221-474359
 "http://www.philo.de/Philosophie-Seiten": 1000+ Philosophie-Links
 "http://www.philo.de/VirtualLibrary/14.de.htm": Deutsche Philo-Links
 "http://www.philo.de/xml": Open XML - XML-Komponenten fuer Delphi
=====================================================================
Received on Thursday, 2 September 1999 12:45:36 GMT

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