PRBool isIncremental = value.EqualsLiteral("true");
PRBool isIncremental = !value.EqualsLiteral("false");
nsXFormsSelectElement::HandleEvent(nsIDOMEvent *aEvent){  nsAutoString type;  aEvent->GetType(type);  nsAutoString value;  mElement->GetAttribute(NS_LITERAL_STRING("incremental"), value);  PRBool isIncremental = value.EqualsLiteral("true");  if ((isIncremental && type.EqualsLiteral("change")) ||      (!isIncremental && type.EqualsLiteral("blur"))) {    if (!mBoundNode)      return NS_OK;    // Update the instance data with our selected items.    nsCOMPtr<nsIDOMNodeList> children;    nsresult rv = mElement->GetChildNodes(getter_AddRefs(children));    NS_ENSURE_SUCCESS(rv, rv);    nsCOMPtr<nsIDOMNode> child;    nsCOMPtr<nsIXFormsSelectChild> childItem;    PRUint32 childCount;    children->GetLength(&childCount);    for (PRUint32 i = 0; i < childCount; ++i) {      children->Item(i, getter_AddRefs(child));      childItem = do_QueryInterface(child);      if (childItem) {        childItem->WriteSelectedItems(mBoundNode);      }    }  }  return NS_OK;}