in reply to Tab index feature added to CGI.pm

A quick workaround might be to use the -no_xhtml pragma that appears to disable the tabindex attribute on the form elements.

/J\

Replies are listed 'Best First'.
Re^2: Tab index feature added to CGI.pm
by cbrandtbuffalo (Deacon) on Sep 07, 2005 at 19:44 UTC
    Indeed you are correct. A quick look at the code reveals many statements like:
    return $XHTML ? qq(<input type="submit" tabindex="$tabindex"$name$val +$other />) : qq(<input type="submit"$name$val$other>);
    The side effect would be that we might not output xhtml, which we currently try to do, but this would be an easy fix for the tab order. I'm guessing we could still output custom headers that indicate the document is XHTML. Thanks for the suggestion.