title: TabIndex not working as expected
body: <p>I am developing a registration form in ASP.NET, as usual it has lots of textboxes.
  I have created tabindices on the text box.
  Each input line is included under <code>&lt;ul&gt;</code> tag.
  The tab indices are set serially, as shown in image the focus jumps from 19 to 22 directly, skipping 20 and 21. Notice that the password fields with tab indices 20 and 21 surrounded by server side <code>&lt;div&gt;</code> tag.</p>
  
  <p>It also occured to me that it only focuses input fields with <code>type="text"</code> but does not focus on <code>input="password"</code> even if the tabIndex property is set.</p>
  
  <p><img src="https://i.stack.imgur.com/FZF7U.png" alt="ScreenShot"></p>
  
  <p>I am not sure what is the reason that on broweser focus skips elemnts with tab index 20 and 21 and how can I fix it?</p>
  
  <p><strong>code:</strong></p>
  
  <pre><code>&lt;ul class="divfloatleft height10imp"&gt;
      &lt;li class="divfloatleft"&gt;
          &lt;div class="contentlabeltext margintop15 width140"&gt;
          &lt;/div&gt;
      &lt;/li&gt;
      &lt;li class="marginleft45"&gt;
          &lt;div class="textalignleft marginleft5imp"&gt;
              &lt;asp:CompareValidator ID="cvRetypeEmail" ForeColor="Red" Display="Dynamic" ValidationGroup="NormRegistration"
                  ControlToCompare="txtEmail" ControlToValidate="txtRetypeEmail" runat="server"
                  ErrorMessage=""&gt;&lt;/asp:CompareValidator&gt;
              &lt;asp:RequiredFieldValidator ID="rfvReTypeEmail" runat="server" ControlToValidate="txtRetypeEmail"
                  ValidationGroup="NormRegistration" Display="Dynamic" ForeColor="Red" ErrorMessage=""&gt;&lt;/asp:RequiredFieldValidator&gt;
          &lt;/div&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  &lt;div id="divPassword" runat="server"&gt;
      &lt;ul class="divfloatleft"&gt;
          &lt;li class="divfloatleft"&gt;
              &lt;div class="contentlabeltext margintop29 width140"&gt;
                  &lt;div class="divfloatleft"&gt;
                      &lt;asp:Literal ID="ltPassword" runat="server" Text=""&gt;&lt;/asp:Literal&gt;&lt;/div&gt;
                  &lt;div class="smallasterix divfloatleft"&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/li&gt;
          &lt;li class="marginleft45 width500 textalignleft"&gt;
              &lt;span class="passwordtext divfloatleft marginleft3imp  width100p"&gt;8 Character min. Must
                  include number, letter and symbol.&lt;/span&gt;
              &lt;br /&gt;
              &lt;div class="divfloatleft"&gt;
                  &lt;div class="divfloatleft width247 marginleft4" title="Password"&gt;
                      &lt;asp:TextBox ID="txtPassword" runat="server" TabIndex="20" ToolTip="Password" TextMode="Password"
                          title="Email" CssClass="width247 height27 borderCEE1F4 bordernone" MaxLength="128"&gt;&lt;/asp:TextBox&gt;
                  &lt;/div&gt;
                  &lt;div class="divfloatleft"&gt;
                      &lt;span class="infohelp infohelp marginleft5 margintop5 divfloatleft"&gt;
                          &lt;img class="tool-tip-link" src="../../App_Themes/Default/Images/info.png" alt="" /&gt;
                          &lt;span class="white-text-content" style="z-index: 2;"&gt;
  
                          &lt;/span&gt;&lt;/span&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
      &lt;ul class="divfloatleft height10imp"&gt;
          &lt;li class="divfloatleft width140 height10"&gt;
              &lt;div class="contentlabeltext width140 height10"&gt;
              &lt;/div&gt;
          &lt;/li&gt;
          &lt;li class="marginleft45 width500"&gt;&lt;span class="passwordtext divfloatleft width100p"&gt;
          &lt;/span&gt;
              &lt;div class="textalignleft marginleft5imp"&gt;
                  &lt;asp:RequiredFieldValidator ID="rfvPassword" runat="server" ControlToValidate="txtPassword"
                      ValidationGroup="NormRegistration" Display="Dynamic" ErrorMessage=""
                      ForeColor="Red" CssClass="lineheight10" SetFocusOnError="True" /&gt;
                  &lt;asp:RegularExpressionValidator ID="revPasswordLength" runat="server" ControlToValidate="txtPassword"
                      ValidationGroup="NormRegistration" ErrorMessage=""
                      ForeColor="Red" CssClass="lineheight10" ValidationExpression="^(?=.*[A-Za-z])(?=.*[0-9])(?=.*[^0-9A-Za-z]).{8,50}$"
                      Display="Dynamic" /&gt;
                  &lt;asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" ControlToValidate="txtPassword"
                      ValidationGroup="NormRegistration" ErrorMessage=""
                      ForeColor="Red" CssClass="lineheight10" ValidationExpression="[\x00-\x80]+" Display="Dynamic" /&gt;
              &lt;/div&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
      &lt;ul class="divfloatleft"&gt;
          &lt;li class="divfloatleft width140"&gt;
              &lt;div class="contentlabeltext margintop19imp divfloatleft"&gt;
                  &lt;asp:Literal ID="ltConfirmPassword" runat="server" Text=""&gt;&lt;/asp:Literal&gt;&lt;/div&gt;
              &lt;div class="smallasterix divfloatleft margintop19imp"&gt;
              &lt;/div&gt;
          &lt;/li&gt;
          &lt;li class="marginleft45 margintop10 textalignleft"&gt;
              &lt;div class="textboxstyle"&gt;
                  &lt;div class="textboxLeft divfloatleft"&gt;
                  &lt;/div&gt;
                  &lt;div class="textboxMid divfloatleft width241" title="Retype Password"&gt;
                      &lt;asp:TextBox ID="txtRetypePassword" runat="server" TabIndex="21" ToolTip="Confirm Password"
                          TextMode="Password" CssClass="ie7margintop5 ie8margintop5  width241 height35 backgroundtrans bordernone"
                          MaxLength="128"&gt;&lt;/asp:TextBox&gt;
                  &lt;/div&gt;
                  &lt;div class="textboxRight divfloatleft"&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
      &lt;ul class="divfloatleft width100p height10imp"&gt;
          &lt;li class="divfloatleft width140 height10"&gt;
              &lt;div class="contentlabeltext width140 height10"&gt;
              &lt;/div&gt;
          &lt;/li&gt;
          &lt;li class="marginleft45"&gt;
              &lt;div class="textalignleft marginleft5imp"&gt;
                  &lt;asp:CompareValidator ID="cvRetypePassword" runat="server" ControlToCompare="txtPassword"
                      ValidationGroup="NormRegistration" ControlToValidate="txtRetypePassword" ErrorMessage=""
                      ForeColor="Red" Display="Dynamic" /&gt;
                  &lt;asp:RequiredFieldValidator ID="rfvRetypePassword" runat="server" ControlToValidate="txtRetypePassword"
                      ValidationGroup="NormRegistration" Display="Dynamic" ForeColor="Red" ErrorMessage="" /&gt;
              &lt;/div&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  &lt;ul class="divfloatleft width100p"&gt;
      &lt;div class="readagreementtext marginleft190 textalignleft "&gt;
          &lt;asp:Label ID="lblPrivacyText" runat="server"&gt;&lt;/asp:Label&gt;&lt;/div&gt;
      &lt;li class="divfloatleft textalignleft margintop10 width140"&gt;
          &lt;div class="contentlabeltext margintop5 divfloatleft "&gt;
              &lt;asp:Literal ID="ltValidationText" runat="server" Text=""&gt;&lt;/asp:Literal&gt;
          &lt;/div&gt;
          &lt;div class="smallasterix divfloatleft margintop5"&gt;
          &lt;/div&gt;
      &lt;/li&gt;
      &lt;li class="divfloatleft marginleft45"&gt;
          &lt;div class="margintop10"&gt;
              &lt;recaptcha:RecaptchaControl ID="recaptcha" runat="server" TabIndex="22" Theme="white"/&gt;
          &lt;/div&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  &lt;ul class="divfloatleft width100p"&gt;
      &lt;li class="divfloatleft width140 height10"&gt;
          &lt;div class="contentlabeltext width140 height10"&gt;
          &lt;/div&gt;
      &lt;/li&gt;
      &lt;li class="marginleft45"&gt;
          &lt;asp:Label ID="lblMessage" runat="server" ForeColor="Red"&gt;&lt;/asp:Label&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  &lt;ul&gt;
      &lt;li class="divfloatleft marginleft160"&gt;
          &lt;div&gt;
              &lt;asp:Button ID="btnRegistration" runat="server" CssClass="createaccount marginleft25 margintop12"
                  TabIndex="23" CausesValidation="true" ValidationGroup="NormRegistration" OnClick="RegisterButton_Click" /&gt;
          &lt;/div&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>