else if (NS_SUCCEEDED(rv) && (aName == nsHTMLAtoms::_for || aName == nsHTMLAtoms::_event) && (aNameSpaceID == kNameSpaceID_None)) {    if (!mIsEvaluated && !mScriptEventHandler) { mScriptEventHandler = new nsHTMLScriptEventHandler(this); if (mScriptEventHandler) { NS_ADDREF(mScriptEventHandler);      mIsEvaluated = PR_TRUE; } else { rv = NS_ERROR_OUT_OF_MEMORY; } }  if ((aName == nsHTMLAtoms::_event) && mScriptEventHandler) { rv = mScriptEventHandler->ParseEventString(aValue); } }
nsHTMLScriptElement::SetAttr(PRInt32 aNameSpaceID, nsIAtom* aName,                             const nsAString& aValue, PRBool aNotify){  nsresult rv = nsGenericHTMLContainerElement::SetAttr(aNameSpaceID,                                                       aName,                                                       aValue,                                                       aNotify);  if (NS_SUCCEEDED(rv) && aNotify && aName == nsHTMLAtoms::src &&      aNameSpaceID == kNameSpaceID_None) {    MaybeProcessScript();  }  return rv;}