Topic: Firefox + Iframes + Tabindex (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=24992" title="Pages that link to Topic: Firefox  + Iframes + Tabindex (Page 1 of 1)" rel="nofollow" >Topic: Firefox  + Iframes + Tabindex <span class="small">(Page 1 of 1)</span>\

 
Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 02-11-2005 17:14

Problem: Firefox ignores my tab index on iframes.
Sample page
Click first field. Hit tab. Notice how you land in the third field instead of the iframe.
Quick code example from that page:

code:
<html>
<body>
<input type="text" tabindex="1" id="one"></input>
<div id="dummy">
<iframe tabindex="2" id="shu" src="http://ozoneasylum.com/s"> </iframe>
</div>
<input type="text" tabindex="3" id="two"></input>
</body>



What in the world am I doing wrong?
Is this a bug? Google does not think so... but I might be asking the wrong questions.
Has anybody got a workaround?
document.getElementById("shu").focus() leads to 'no such function - focus'.

So long,
->Tyberius Prime

Edit: Oh, and opera is completly ignoring the iframe in the tab order. But I can live with that, this system only needs to support IE and FF/Mozilla.

(Edited by Tyberius Prime on 02-11-2005 17:16)

DmS
Maniac (V) Inmate

From: Sthlm, Sweden
Insane since: Oct 2000

posted posted 02-11-2005 23:28

Interesting, I'm afraid all I can contribute with at this point is that it works in Safari...
To bad that doesn't help...
What's the tabindex of the field in the page in the iFrame?

Can you reach it through document.getElementById("shu").<formname>.<elementname> or something like that (if they are in the same domain that is)
/Dan

{cell 260} {Blog}
-{ ?The Internet treats censorship as a malfunction and routes around it.? (-Barlow, John Perry) }-

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 02-12-2005 01:26

According to the SPEC of HTML 4.0, the tabindex attribute only applies to A, AREA, BUTTON, INPUT, OBJECT, SELECT, and TEXTAREA. But not to the IFRAME, so I don't consider this as a bug.

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 02-13-2005 15:03

Well, the xhtml spec (even if I forget to define this test page as xhtml)
forgets the tabindex (or better, the '%focus') on iframes as well.

But I can tab into an iframe - why in the blue heck should I not be able to set it's tabindex?
(Note that having a control with a tab index 'in the middle' within the iframe does not help either.
Tabindices are apperantly seperate by frame).

Just goes to proof - specifications are sometimes darn stupid.

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 02-13-2005 15:42

I understand your point. It'd be usefull to have the tabindex attribute available on almost every tag. And the fact some browsers interprets them though the spec is misleading.

Actually the ones to blame are either the W3C for removing this attribute, or some browsers vendors for not respecting the specs. You choose.

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 02-13-2005 17:12

well, usually I'm quite happy to blame the browser vendors.
But this time... I even found some firefox/mozilla bugzilla reports where the developers agreed that tabindex should work like in IE...

Standards are a good thing - if they're sensible. This is not. All browsers suck.

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 02-13-2005 17:24

Yep, Gecko based browsers are certainly too strict here.

By "developers", you mean web developers like you and me, or application developers working on a Gecko based browser ?

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 02-13-2005 17:26

it were comments in mozillas bugzilla bug tracking system, on a user reported bug.
They went like 'we should do this like Internet Explorer does'. Can't find them right now,
but I suppose it were gecko developers.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu