NS_IMPL_STRING_ATTR(nsHTMLOptionElement, Label, label)
nsHTMLOptionElement::SetLabel(const nsString& aValue) { nsresult result = mInner.SetAttribute(kNameSpaceID_HTML, nsHTMLAtoms::label, aValue, PR_TRUE); if (NS_SUCCEEDED(result)) { nsIFormControlFrame* fcFrame = nsnull; nsresult result = GetPrimaryFrame(fcFrame); if (NS_SUCCEEDED(result) && (nsnull != fcFrame)) { nsIComboboxControlFrame* selectFrame = nsnull; result = fcFrame->QueryInterface(nsIComboboxControlFrame::GetIID(),(void **) &selectFrame); if (NS_SUCCEEDED(result) && (nsnull != selectFrame)) { selectFrame->UpdateSelection(PR_FALSE, PR_TRUE, 0); } } } return result; }
NS_IMPL_STRING_ATTR(nsHTMLOptionElement, Label, label)