title: What is the best way to remove all tabindex attribute to html elements?
body: <p>What is the best way to remove all tabindex attributes from html elements? GWt seems to put this attribute even it is not set anywhere in the code. It sets tabindex to -1. </p>
  
  <p>I have the code below as working but it is tedious because I have to search every element according to its tag name and that slows the page loading. Any other suggestions? I'd prefer the solution not use javascript, as I am new to it.</p>
  
  <pre><code>        NodeList&lt;Element&gt; input =  this.getElement().getElementsByTagName("input");
  
          if(input.getLength()&gt;0)
          {
              for(int i=0; i&lt;=input.getLength(); i++)
              {
  
                      input.getItem(i).removeAttribute("tabIndex");
  
              }
  
          }
          NodeList&lt;Element&gt; div =  this.getElement().getElementsByTagName("div");
  
          if(div.getLength()&gt;0)
          {
              for(int i=0; i&lt;=div.getLength(); i++)
              {
  
                      div.getItem(i).removeAttribute("tabIndex");
  
              }
  
          }
  </code></pre>