Checking in Fabian Guisset's <hidday@geocities.com> 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
This commit is contained in:
jst%netscape.com 2002-02-09 02:18:22 +00:00
parent f70b76c8fe
commit 95350ecfce
2 changed files with 10 additions and 0 deletions

View File

@ -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;
}

View File

@ -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;
}