rv = NS_STATIC_CAST(nsIContent *, this)->GetAttr(kNameSpaceID_None, nsHTMLAtoms::accesskey, accessKey);
rv = GetAttr(kNameSpaceID_None, nsHTMLAtoms::accesskey, accessKey);
nsresult nsHTMLAnchorElement::RegUnRegAccessKey(PRBool aDoReg){  // first check to see if it even has an acess key  nsAutoString accessKey;  nsresult rv;  rv = NS_STATIC_CAST(nsIContent *, this)->GetAttr(kNameSpaceID_None,                                                   nsHTMLAtoms::accesskey,                                                   accessKey);  if (NS_CONTENT_ATTR_NOT_THERE != rv) {    nsCOMPtr<nsIPresContext> presContext;    GetPresContext(this, getter_AddRefs(presContext));    // With a valid PresContext we can get the EVM     // and register the access key    if (presContext) {      nsCOMPtr<nsIEventStateManager> stateManager;      presContext->GetEventStateManager(getter_AddRefs(stateManager));      if (stateManager) {        if (aDoReg) {          return stateManager->RegisterAccessKey(nsnull, this,                                                 (PRUint32)accessKey.First());        } else {          return stateManager->UnregisterAccessKey(nsnull, this,                                                   (PRUint32)accessKey.First());        }      }    }  }  return NS_ERROR_FAILURE;}