nsGenericHTMLContainerFormElement::SetAttribute(PRInt32 aNameSpaceID, nsIAtom* aName, const nsAReadableString& aValue, PRBool aNotify) {  nsCOMPtr<nsIFormControl> control; control = do_QueryInterface(mContent); if (mForm && (nsHTMLAtoms::name == aName || nsHTMLAtoms::id == aName)) { mForm->AddElementToTable(control, aValue);
NS_METHOD SetAttribute(const nsAString& aName, const nsAString& aValue) { return nsGenericElement::SetAttribute(aName, aValue);
nsGenericHTMLContainerFormElement::SetAttribute(PRInt32 aNameSpaceID, nsIAtom* aName, const nsAReadableString& aValue,                                                PRBool aNotify){  // Add the control to the hash table  nsCOMPtr<nsIFormControl> control;    control = do_QueryInterface(mContent);  if (mForm && (nsHTMLAtoms::name == aName || nsHTMLAtoms::id == aName)) {    mForm->AddElementToTable(control, aValue);  }  return nsGenericHTMLElement::SetAttribute(aNameSpaceID, aName, aValue, aNotify);}