OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   question: NodeIterator in DOM

[ Lists Home | Date Index | Thread Index ]
  • From: akitoshi.yoshida@sap-ag.de (Akitoshi Yoshida)
  • To: xml-dev@ic.ac.uk
  • Date: Fri, 15 May 1998 13:31:44 +0200 (METDST)

Hi,
I have a question on NodeIterator in DOM-19980416.

Excerpt from the spec:

  If a node is inserted before the node just after
  the iterator position, it will be returned by getNextNode();
  likewise if a node is inserted after the node just previous
  to the iterator position, it will be return by the next
  getPrevNode() call.

The first part is clear. When a Node is inserted by insertBefore()
at the node just before the iterator position, the iterator position
is set in front of this new node. The second part
starting "likewise.." is not clear to me.  Are we assuming the
existance of the insertAfter() method? It sounds like the
insertion position (relative to the nodes) is the same as
in the first case. If we only have the
insertBefore() method in the Node inteface,
how can we distinguish the above two cases?

thanks in advance for any clarification

aki

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS