in reply to CGI.pm and tabindex
A quick read of the CGI.pm source code shows that the tabindex behavior is controlled in two ways: by setting a CGI package global called $TABINDEX, and when you explicitly pass in a -tabindex for each element. The bizarre part is that $TABINDEX is false by default and only gets set to true if -tabindex is passed to the constructor.
You may be able to turn off this behavior by setting $CGI::TABINDEX = 0 from your code, but it really isn't a good idea to muck around with a module's internals like that -- you're better off figuring out why this is happening.
The only explanation for this unexpected behavior that I can think of is that you are using the CGI module in a persistent environment (mod_perl, FastCGI, SpeedyCGI or whatever) and one of your other scripts is using the global -tabindex option, which CGI.pm is failing to reset between invocations for whatever reason.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CGI.pm and tabindex
by Anonymous Monk on Aug 31, 2006 at 06:00 UTC | |
|
Re^2: CGI.pm and tabindex
by ruzam (Curate) on Aug 31, 2006 at 04:16 UTC | |
by dirving (Friar) on Aug 31, 2006 at 04:42 UTC | |
by ruzam (Curate) on Aug 31, 2006 at 06:05 UTC | |
by dirving (Friar) on Aug 31, 2006 at 17:54 UTC | |
by ruzam (Curate) on Sep 03, 2006 at 17:05 UTC |