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

Re: Behavior of NodeIterator.toNext()

From: TAMURA Kent <kent@trl.ibm.co.jp>
Date: Wed, 8 Apr 1998 14:26:15 +0900
Message-Id: <199804080526.OAA16411@ns.trl.ibm.com>
To: www-dom@w3.org
>  > NodeIterator ni = some_node.getChildNodes();
>  > Node node = ni.toNext();
>  >
>  >In this code, is a variable `node' the first child? Or second
>  >child?
> 
> I plead for an explicitly "undefined" position where getCurrent() returns null.
>	:
>	:

Ok, I have understood and agree it.  Programmers must not call
toNext()/toPrevious()/getCurrent() before calling
toFirst()/toLast()/toNth()/toNode().

-- 
TAMURA Kent @ Tokyo Research Laboratory, IBM Japan
Received on Wednesday, 8 April 1998 01:27:04 GMT

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