if (!foundValue && !mSrcAttrText.IsEmpty()) { labelValue = NS_ConvertUTF8toUTF16(mSrcAttrText); foundValue = PR_TRUE; }
nsXFormsLabelElement::RefreshLabel(){  // The order of precedence for determining the label is:  //   single node binding, linking, inline text (8.3.3)  // Because of this, if we have inline text, we must copy it rather than just  // allowing insertionPoint to point into our anonymous content.  If a binding  // or linking attributes are present, we don't want to show the inline text  // at all.  nsAutoString labelValue;  PRBool foundValue = PR_FALSE;  if (mBoundNode) {    nsXFormsUtils::GetNodeValue(mBoundNode, labelValue);    foundValue = PR_TRUE;  }  // if (!foundValue) {  //   TODO: src attribute  // }  nsCOMPtr<nsIDOMNode> textNode;  mOuterSpan->GetFirstChild(getter_AddRefs(textNode));  if (foundValue) {    // Hide our inline text and use the given label value.    textNode->SetNodeValue(labelValue);    mInnerSpan->SetAttribute(NS_LITERAL_STRING("style"),                             NS_LITERAL_STRING("display:none"));  } else {    // Just show our inline text.    textNode->SetNodeValue(EmptyString());    mInnerSpan->RemoveAttribute(NS_LITERAL_STRING("style"));  }}