<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>20596</bug_id>
          
          <creation_ts>2008-09-02 02:20:20 -0700</creation_ts>
          <short_desc>tabindex returns &quot;undefined&quot; for some elements</short_desc>
          <delta_ts>2009-01-12 15:24:19 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>7138</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>89897</commentid>
    <comment_count>0</comment_count>
    <who name="">webkit</who>
    <bug_when>2008-09-02 02:20:20 -0700</bug_when>
    <thetext>Element.tabIndex returns &quot;undefined&quot; for some elements, like &lt;div&gt;. All other browsers returns some value for it.

For non &quot;focusable&quot; elements (like div), tabIndex should return a negative value (-1) by default (IE returns zero). For &quot;focusable&quot; elements (like input), it should return zero by default

I&apos;m attaching a TC that works well with Firefox and Opera.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89898</commentid>
    <comment_count>1</comment_count>
      <attachid>23112</attachid>
    <who name="">webkit</who>
    <bug_when>2008-09-02 02:21:30 -0700</bug_when>
    <thetext>Created attachment 23112
TC

This TC works well with Firefox and Opera.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90054</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-09-03 13:25:24 -0700</bug_when>
    <thetext>&lt;rdar://problem/6194013&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90667</commentid>
    <comment_count>3</comment_count>
    <who name="Alice Liu">alice.barraclough</who>
    <bug_when>2008-09-09 10:17:43 -0700</bug_when>
    <thetext>The test case returns expected values with TOT WebKit.  Perhaps the wrong test case was attached, or maybe it was tested against an old version of WebKit.  </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90740</commentid>
    <comment_count>4</comment_count>
    <who name="">webkit</who>
    <bug_when>2008-09-10 00:55:16 -0700</bug_when>
    <thetext>For reference, this is the UA string with which I can still confirm this bug.

Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Version/3.1.2 Safari/525.21

(Safari 3.1.2 Windows / 525.21)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105405</commentid>
    <comment_count>5</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2009-01-12 15:24:12 -0800</bug_when>
    <thetext>So this is a duplicate of a bug we fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105406</commentid>
    <comment_count>6</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2009-01-12 15:24:19 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 7138 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>23112</attachid>
            <date>2008-09-02 02:21:30 -0700</date>
            <delta_ts>2008-09-02 02:21:30 -0700</delta_ts>
            <desc>TC</desc>
            <filename>tabindex.htm</filename>
            <type>text/html</type>
            <size>552</size>
            <attacher>webkit</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgVHJhbnNpdGlvbmFs
Ly9FTiIgImh0dHA6Ly93d3cudzMub3JnL1RSL3hodG1sMS9EVEQveGh0bWwxLXRyYW5zaXRpb25h
bC5kdGQiPg0KPGh0bWwgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwiPg0KPGhl
YWQ+DQoJPHRpdGxlPlRhYkluZGV4IFRlc3Q8L3RpdGxlPg0KCTxzY3JpcHQgdHlwZT0idGV4dC9q
YXZhc2NyaXB0Ij4NCg0Kd2luZG93Lm9ubG9hZCA9IGZ1bmN0aW9uKCkNCnsNCglhbGVydCggJ0V4
cGVjdGVkOiAtMSB8IEN1cnJlbnQ6ICcgKyBkb2N1bWVudC5nZXRFbGVtZW50c0J5VGFnTmFtZSgg
J2RpdicgKVswXS50YWJJbmRleCApOw0KCWFsZXJ0KCAnRXhwZWN0ZWQ6IDEwIHwgQ3VycmVudDog
JyArIGRvY3VtZW50LmdldEVsZW1lbnRzQnlUYWdOYW1lKCAnZGl2JyApWzFdLnRhYkluZGV4ICk7
DQp9DQoNCgk8L3NjcmlwdD4NCjwvaGVhZD4NCjxib2R5Pg0KCTxkaXY+PC9kaXY+DQoJPGRpdiB0
YWJpbmRleD0iMTAiPjwvZGl2Pg0KPC9ib2R5Pg0KPC9odG1sPg0K
</data>

          </attachment>
      

    </bug>

</bugzilla>