tabIndex for HTMLAreaElement returns incorrect index

VERIFIED FIXED in M11

Status

()

P2
major
VERIFIED FIXED
19 years ago
18 years ago

People

(Reporter: ckritzer, Assigned: vidur)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

19 years ago
Overview Description: tabIndex for HTMLAreaElement returns a -1 for any index.

Steps to Reproduce:
1) Put the following html into a document and save to a local directory:
************************************************************************

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML>
<HEAD>
<TITLE>hare007.html</TITLE>
</HEAD>
<BODY>
<img src="mondrian8.jpg" usemap="#mondrian">
<map name="mondrian">
	<AREA shape="rect" alt="red" coords="0,0, 63,61" href="../testdata/red.html"
tabindex=1  accesskey="a" target="red8">
	<AREA shape="rect" alt="white" coords="71,70, 186,172" noHref tabIndex=2
accesskey="b" target="white9">
	<AREA shape="rect" alt="red" coords="272,135, 285,149"
href="../testdata/red.html" tabindex=3  accesskey="c" target="red10">
	<AREA shape="rect" alt="blue" coords="272,180, 285,194"
href="../testdata/blue.html" tabindex=4  accesskey="d" target="blue11">
</map>
<SCRIPT TYPE="text/javascript">


// *** Functions ***

// Get the HTMLAreaElement.tabIndex
function htmlAreaElementTabIndex(iIndex) {
	var sTabIndex = document.getElementsByTagName('AREA').item(iIndex).tabIndex;
	return sTabIndex;
}


//*********************** BEGIN MAIN TEST BODY **************************
document.write("<p>");
document.write("******** DEBUG AREA ********<br>");
var foo = document.getElementsByTagName('AREA');
var a = 0;
for (i=0;i < foo.length;i++) {
	a++;
	document.write("Tab Index should be '" + a + "' and it is returned as '" +
foo.item(i).tabIndex + "'<br>");
}
//*********************** END MAIN TEST BODY **************************

</SCRIPT>
</BODY>
</HTML>


************************************************************************
2) Load the page into your browser.

Actual Results: Every instance of tabIndex returns -1 regardless of its real
value


Expected Results: For each tabIndex to return its assigned value (1, 2, 3, or 4)


Build Date & Platform Bug Found:
MacOS 1999091608
Linux 1999091609
Win98 1999091609


Additional Builds and Platforms Tested On:


Additional Information:
HTML DOM bugs are M11/P2 for Vidur.

Updated

19 years ago
QA Contact: gerardok → ckritzer
(Assignee)

Updated

19 years ago
Status: NEW → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → FIXED
(Assignee)

Comment 2

19 years ago
Yeah, we weren't doing correct string to attribute conversion for the tabindex
attribute. Fixed on 9/21/1999.
(Reporter)

Updated

19 years ago
Status: RESOLVED → VERIFIED
(Reporter)

Comment 3

19 years ago
Verified fixed on apprunner build 1999102508 for MacOS86, Linux6, & Win98.
You need to log in before you can comment on or make changes to this bug.