nsHTMLSelectElement::SetLength(PRUint32 aLength)
nsHTMLOptionCollection::SetLength(PRUint32 aLength)
nsHTMLSelectElement::SetLength(PRUint32 aLength){  if (!mOptions) {    Init();  }  PRUint32 curlen;  nsresult result;  GetLength(&curlen);  if (curlen && (curlen > aLength)) { // Remove extra options    for (PRInt32 i = (curlen - 1); (i>=(PRInt32)aLength) && NS_SUCCEEDED(result); i--) {      result = Remove(i);    }  } else { // Add options?  }  return NS_OK;}