Welcome to WebmasterWorld Guest from 54.205.251.179

Forum Moderators: open

Message Too Old, No Replies

Opera 9.02, tabindex on elements with display:none not working

IE and FF working fine

   
4:15 pm on Dec 11, 2006 (gmt 0)

10+ Year Member



Hello,

i have for example 10 input elements type="image" with tabindex from 1 to 10.

Set some of them to display:none and Opera 9.02 stops tabbing at these elements. You can not get to higher tabindexes.
IE and FF are working fine.

Is this a bug or a feature ;-)
Does someone knows a workaround?

Thank you!
mupo

CODE:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>tabindex with display:none in Opera 9.02 buggy?</title>
</head>
<body>
<input tabindex="1" type="image" src="example.gif">
<input tabindex="2" type="image" src="example.gif">
<input tabindex="3" type="image" src="example.gif">
<input tabindex="4" style="display:none" type="image" src="example.gif">
<input tabindex="5" type="image" src="example.gif">
<input tabindex="6" style="display:none" type="image" src="example.gif">
<input tabindex="7" type="image" src="example.gif">
<input tabindex="8" style="display:none" type="image" src="example.gif">
<input tabindex="9" type="image" src="example.gif">
<input tabindex="10" style="display:none" type="image" src="example.gif">
</body>
</html>

2:03 am on Dec 27, 2006 (gmt 0)

WebmasterWorld Senior Member encyclo is a WebmasterWorld Top Contributor of All Time 10+ Year Member



It's a feature - Opera removes elements styled with
display:none;
completely out of the DOM, which leads to the kind of problems you are experiencing. Here's an earlier thread on a very similar issue:

[webmasterworld.com...]