Try the following one-liners on the command-line:
perl -MCGI=:form, -e 'print textfield()'
perl -MCGI=:form,:tabindex -e 'print textfield()'
On my system, the first one outputs <input type="text" name="" /> without the tabindex while the second one includes the tabindex attribute: <input type="text" name="" tabindex="1" />
This is just a quick check if the defaults are for some reason different in your CGI.pm or whether there is something more mysterious going on. If your results from running these are the same as mine, then there must be something in your program or the environment it's running in that is triggering the strange tabindex behavior.
|