From 95350ecfce3f1eae9d6b6ce45499cf750c16fb5f Mon Sep 17 00:00:00 2001 From: "jst%netscape.com" Date: Sat, 9 Feb 2002 02:18:22 +0000 Subject: [PATCH] Checking in Fabian Guisset's fix for bug 95476. Making objectElement.tabIndex not always return -1. r=sicking@bigfoot.com, sr=jst@netscape.com git-svn-id: svn://10.0.0.236/trunk@114117 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/html/content/src/nsHTMLObjectElement.cpp | 5 +++++ .../content/html/content/src/nsHTMLSharedObjectElement.cpp | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/mozilla/content/html/content/src/nsHTMLObjectElement.cpp b/mozilla/content/html/content/src/nsHTMLObjectElement.cpp index 4716137e791..70e12e2f2fc 100644 --- a/mozilla/content/html/content/src/nsHTMLObjectElement.cpp +++ b/mozilla/content/html/content/src/nsHTMLObjectElement.cpp @@ -204,6 +204,11 @@ nsHTMLObjectElement::StringToAttribute(nsIAtom* aAttribute, return NS_CONTENT_ATTR_HAS_VALUE; } } + else if (aAttribute == nsHTMLAtoms::tabindex) { + if (ParseValue(aValue, 0, aResult, eHTMLUnit_Integer)) { + return NS_CONTENT_ATTR_HAS_VALUE; + } + } else if (ParseImageAttribute(aAttribute, aValue, aResult)) { return NS_CONTENT_ATTR_HAS_VALUE; } diff --git a/mozilla/content/html/content/src/nsHTMLSharedObjectElement.cpp b/mozilla/content/html/content/src/nsHTMLSharedObjectElement.cpp index 4716137e791..70e12e2f2fc 100644 --- a/mozilla/content/html/content/src/nsHTMLSharedObjectElement.cpp +++ b/mozilla/content/html/content/src/nsHTMLSharedObjectElement.cpp @@ -204,6 +204,11 @@ nsHTMLObjectElement::StringToAttribute(nsIAtom* aAttribute, return NS_CONTENT_ATTR_HAS_VALUE; } } + else if (aAttribute == nsHTMLAtoms::tabindex) { + if (ParseValue(aValue, 0, aResult, eHTMLUnit_Integer)) { + return NS_CONTENT_ATTR_HAS_VALUE; + } + } else if (ParseImageAttribute(aAttribute, aValue, aResult)) { return NS_CONTENT_ATTR_HAS_VALUE; }