title: In Internet Explorer If element does not have tabIndex, it will return 0 as default value
body: <p>I am getting tabIndex property using javascript, for this element</p>
  
  <pre><code>&lt;div role="radio" aria-checked="false" tabindex="-1"&gt;
   &lt;div id="if_empty" tabindex="-1" type="radio" value="Show only if empty"&gt;&lt;/div&gt;
   &lt;label id="radioId" for="if_empty"&gt;Show only if empty&lt;/label&gt;
  &lt;/div&gt;
  
  </code></pre>
  
  <p>It works perfectly in all browsers, except Internet Explorer.</p>
  
  <pre><code>const element = document.getElementById("radioId");
  const tabIndex = element.tabIndex;
  
  // tabIndex is -1 for Firefox/Chrome
  // and it is equal 0 for Internet Explorer
  </code></pre>
  
  <p>How do I get the correct tabIndex in Internet Explorer?</p>