mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Bug 417760 - cannot focus() img elements with tabindex=-1, patch=aaronlev, r,sr = mats, a=mtschrep
This commit is contained in:
parent
df2bf9e7e1
commit
b295bdb198
@ -463,7 +463,7 @@ nsHTMLImageElement::IsFocusable(PRInt32 *aTabIndex)
|
||||
*aTabIndex = (sTabFocusModel & eTabFocus_formElementsMask)? tabIndex : -1;
|
||||
}
|
||||
|
||||
return tabIndex >= 0;
|
||||
return tabIndex >= 0 || HasAttr(kNameSpaceID_None, nsGkAtoms::tabindex);
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
Loading…
Reference in New Issue
Block a user