From b295bdb198f5b95662f8401010d6226fa782ae8b Mon Sep 17 00:00:00 2001 From: "surkov.alexander@gmail.com" Date: Wed, 19 Mar 2008 23:33:57 -0700 Subject: [PATCH] Bug 417760 - cannot focus() img elements with tabindex=-1, patch=aaronlev, r,sr = mats, a=mtschrep --- content/html/content/src/nsHTMLImageElement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/html/content/src/nsHTMLImageElement.cpp b/content/html/content/src/nsHTMLImageElement.cpp index 265cd1342c78..35e405e593b6 100644 --- a/content/html/content/src/nsHTMLImageElement.cpp +++ b/content/html/content/src/nsHTMLImageElement.cpp @@ -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