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.
In reply to Re: CGI.pm and tabindex
by dirving
in thread CGI.pm and tabindex
by ruzam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |