nsITextWidget *textWidget; if (NS_OK == mWidget->QueryInterface(kITextWidgetIID, (void**)&textWidget)) {
nsITextAreaWidget *textWidget; if (NS_OK == mWidget->QueryInterface(kITextAreaWidgetIID, (void**)&textWidget)) {
nsHTMLTextAreaElement::Select() // XXX not tested{  if (nsnull != mWidget) {    nsITextWidget *textWidget;    if (NS_OK == mWidget->QueryInterface(kITextWidgetIID, (void**)&textWidget)) {      textWidget->SelectAll();      NS_RELEASE(textWidget);    }  }  return NS_OK;}