Closed
Bug 14105
Opened 25 years ago
Closed 25 years ago
tabIndex for HTMLAreaElement returns incorrect index
Categories
(Core :: DOM: Core & HTML, defect, P2)
Core
DOM: Core & HTML
Tracking
()
VERIFIED
FIXED
M11
People
(Reporter: ckritzer, Assigned: vidur)
References
()
Details
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.
Assignee | ||
Updated•25 years ago
|
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 2•25 years ago
|
||
Yeah, we weren't doing correct string to attribute conversion for the tabindex attribute. Fixed on 9/21/1999.
Reporter | ||
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 3•25 years ago
|
||
Verified fixed on apprunner build 1999102508 for MacOS86, Linux6, & Win98.
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•