aContent->GetAttribute( kNameSpaceID_None, kIdAtom, id );
nsCOMPtr<nsIAtom> atomId = nsDontQueryInterface<nsIAtom>( NS_NewAtom("id") ); aContent->GetAttribute( kNameSpaceID_None, atomId, id );
nsFileDownloadDialog::AttributeChanged( nsIDocument *aDocument,                                        nsIContent*  aContent,                                        nsIAtom*     aAttribute,                                        PRInt32      aHint ) {    nsresult rv = NS_OK;    // Look for data.execute command changing.    nsString id;    aContent->GetAttribute( kNameSpaceID_None, kIdAtom, id );    if ( id == "data.execute" ) {        nsString cmd;        aContent->GetAttribute( kNameSpaceID_None, kCommandAtom, cmd );        if ( cmd == "ok" ) {            OnOK( aContent );        } else if ( cmd == "stop" ) {            OnStop();        } else if ( cmd == "close" ) {            OnClose();        } else {        }        aContent->SetAttribute( kNameSpaceID_None, kCommandAtom, "", PR_FALSE );    }    return rv;}