if (0 == typeStr.CompareWithConversion("radio", PR_TRUE) || 0 == typeStr.CompareWithConversion("checkbox", PR_TRUE)) {
if (0 == typeStr.LowerCaseEqualsLiteral("radio", PR_TRUE) || 0 == typeStr.LowerCaseEqualsLiteral("checkbox", PR_TRUE)) {
JNIEXPORT void JNICALL Java_org_mozilla_dom_NodeImpl_setNodeValue  (JNIEnv *env, jobject jthis, jstring jvalue){  nsIDOMNode* node = (nsIDOMNode*)     env->GetLongField(jthis, JavaDOMGlobals::nodePtrFID);  if (!node || !jvalue) {    JavaDOMGlobals::ThrowException(env,      "Node.setNodeValue: NULL pointer");    return;  }  nsString* value = JavaDOMGlobals::GetUnicode(env, jvalue);  if (!value)    return;  nsresult rv;  OMDNI_QUERY_AND_CALL(node, SetValue, *value)  if (input) {    nsAutoString typeStr;    nsString val;        if (NS_SUCCEEDED(rv = input->GetType(typeStr))) {      if (0 == typeStr.CompareWithConversion("radio", PR_TRUE) ||	  0 == typeStr.CompareWithConversion("checkbox", PR_TRUE)) {	val = *value;	if (0 == val.Length()) {	  input->SetChecked(PR_FALSE);	}	else {	  input->SetChecked(PR_TRUE);	}      }    }  }    if (!OMDNI_didCall) {    rv = node->SetNodeValue(*value);  }  nsMemory::Free(value);  if (NS_FAILED(rv)) {    JavaDOMGlobals::ExceptionType exceptionType = JavaDOMGlobals::EXCEPTION_RUNTIME;    if (rv == NS_ERROR_DOM_NO_MODIFICATION_ALLOWED_ERR) {      exceptionType = JavaDOMGlobals::EXCEPTION_DOM;    }    JavaDOMGlobals::ThrowException(env,      "Node.setNodeValue: failed", rv, exceptionType);  }}