- From: Mark Robinson <markr@sites-online.com>
- Date: Fri, 16 Oct 1998 21:58:46 -0400
- To: "Stephen R. Savitzky" <steve@crc.ricoh.com>
- CC: www-dom@w3.org
Steve - > ...The _correct_ way of deleting all the paragraphs in a document is, of course, > to replace line 3 with: > > 3' for (int i = numberOfParagraphs - 1; i >= 0; i--) { or just not deal with the indexing at all, like: Node n = nl.item(0); while( n != null ) { n.getParentNode().removeChild(n); n = nl.item(0); } Right? Mark Robinson
Received on Friday, 16 October 1998 22:00:07 UTC