<?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>141136</bug_id>
          
          <creation_ts>2015-02-01 03:45:31 -0800</creation_ts>
          <short_desc>AX: Focus Link Target (sequential focus navigation starting point)</short_desc>
          <delta_ts>2015-08-18 01:06:54 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Accessibility</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>116046</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rodney Rehm">mail</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jcraig</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1065958</commentid>
    <comment_count>0</comment_count>
      <attachid>245826</attachid>
    <who name="Rodney Rehm">mail</who>
    <bug_when>2015-02-01 03:45:31 -0800</bug_when>
    <thetext>Created attachment 245826
test case

Steps to Reproduce:
1. define a non focusable element: &lt;div id=&quot;the-target&quot;&gt;
2. define a link to that element: &lt;a href=&quot;#the-target&quot;&gt;
3. click the link, hit &lt;kbd&gt;Tab&lt;/kbd&gt; to see where focus ends up


Expected Behavior:
While the non focusable :target (&lt;div id=&quot;the-target&quot;&gt;) should not have received focus, it should be the element from which the next item in the document&apos;s tabbing sequence is identified upon pressing &lt;kbd&gt;Tab&lt;/kbd&gt;


What Went Wrong:
Focus was retained on the link element, the tabbing sequence continues from there.


Related Bugs:
https://bugs.webkit.org/show_bug.cgi?id=17450
https://bugs.webkit.org/show_bug.cgi?id=140963
https://bugs.webkit.org/show_bug.cgi?id=17450

Chromium Bug For Reference:
https://code.google.com/p/chromium/issues/detail?id=454172


Additional Notes:
&quot;navigating to a fragment identifier&quot; [1] defines what should happen when an anchor link is clicked. Using the &quot;sequential focus navigation starting point&quot; [2] is the way Gecko handles :target elements that are not focusable.

This behavior renders table of contents and skip-links useless, unless their :target elements are focusable.

[1] http://www.w3.org/TR/html5/browsers.html#scroll-to-fragid 
[2] https://html.spec.whatwg.org/multipage/interaction.html#sequential-focus-navigation-starting-point</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1065959</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-02-01 03:45:50 -0800</bug_when>
    <thetext>&lt;rdar://problem/19677917&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1065960</commentid>
    <comment_count>2</comment_count>
    <who name="Rodney Rehm">mail</who>
    <bug_when>2015-02-01 03:54:05 -0800</bug_when>
    <thetext>That first related bug should&apos;ve been https://bugs.webkit.org/show_bug.cgi?id=22599</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1118486</commentid>
    <comment_count>3</comment_count>
    <who name="James Craig">jcraig</who>
    <bug_when>2015-08-18 01:06:54 -0700</bug_when>
    <thetext>Dupe of bug 116046

*** This bug has been marked as a duplicate of bug 116046 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>245826</attachid>
            <date>2015-02-01 03:45:31 -0800</date>
            <delta_ts>2015-02-01 03:45:31 -0800</delta_ts>
            <desc>test case</desc>
            <filename>link-focus.html</filename>
            <type>text/html</type>
            <size>1719</size>
            <attacher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