while (1) { nsIDOMNode *node = (nsIDOMNode *)aAncestorArray.ElementAt(i++);
while (i) { nsIDOMNode *node = (nsIDOMNode *)aAncestorArray.ElementAt(--i);
nsDocumentEncoder::SerializeRangeContextStart(const nsVoidArray& aAncestorArray,                                              nsAWritableString& aString){  PRInt32 i = 0;  nsresult rv = NS_OK;  while (1) {    nsIDOMNode *node = (nsIDOMNode *)aAncestorArray.ElementAt(i++);    if (!node)      break;    if (IncludeInContext(node)) {      rv = SerializeNodeStart(node, 0, -1, aString);      if (NS_FAILED(rv))        break;    }  }  return rv;}