<?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>162866</bug_id>
          
          <creation_ts>2016-10-03 09:47:20 -0700</creation_ts>
          <short_desc>Broken tab button behavior with svg &lt;use&gt; element</short_desc>
          <delta_ts>2022-08-20 15:01:17 -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>SVG</component>
          <version>Safari 10</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.11</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <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="Arseny Forshtreter">arseniy.forshtreter</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>cfleizach</cc>
    
    <cc>fredrik</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>stephanie.rewis</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1235793</commentid>
    <comment_count>0</comment_count>
    <who name="Arseny Forshtreter">arseniy.forshtreter</who>
    <bug_when>2016-10-03 09:47:20 -0700</bug_when>
    <thetext>Hi everyone.

After upgrading Safari to version 10.0 one of my colleagues has noticed a very strange behavior on our service: pressing a Tab button while being focused on some of &lt;input&gt; elements on the page leads to focus on Safari interface elements (back button or first tab, depends whether tabs pane is visible or not) instead of a next input element.
Brief research has shown that &lt;use&gt; element causes the problem.
Here is a minimal example: https://jsfiddle.net/bwb9aq3h/ To reproduce a bug you need to focus a first &lt;input&gt;, press Tab and make sure that back button or tabs pane gets focused after that instead of next &lt;input&gt;

Even though we&apos;ve found a workaround (a very odd one i must say, you need to insert a whitespace around &lt;use&gt; like here: https://jsfiddle.net/hsrdm2vv/), we sincerely hope for this to be fixed, because it breaks user experience on a lot of websites that use svg icons.

Thank you!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1236025</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2016-10-03 18:41:21 -0700</bug_when>
    <thetext>&lt;rdar://problem/28602056&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1247861</commentid>
    <comment_count>2</comment_count>
    <who name="Stephanie (Sullivan) Rewis">stephanie.rewis</who>
    <bug_when>2016-11-03 14:26:45 -0700</bug_when>
    <thetext>Yes, agreed. This is a very big deal. While adding space might work for some, many large sites remove whitespace automatically. This is a high priority a11y and keyboard navigation bug in my opinion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1890892</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-12 09:03:37 -0700</bug_when>
    <thetext>I am not able to reproduce this in Safari 15.6 on macOS 12.5 and it seems to be fixed in Safari Technical Preview 151 better.

*** Safari 15.6 ***

1) Click on first input
2) Press Tab
3) It goes to next input
4) Press Tab again - it goes *poof*

*** Safari Technical Preview 151 ***

1) Click on first input
2) Press Tab
3) It goes to next input
4) Press Tab again - it goes to address bar
5) Press Tab again - it goes to first input field again.

Appreciate if someone can comment and mark this bug accordingly. Original actual results from &quot;Comment 0&quot; was that pressing Tab was not leading to next input field on the page.

NOTE - I had JSFiddle open with &quot;show&quot; in the end to make it fully visible.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1892705</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-08-20 15:01:17 -0700</bug_when>
    <thetext>Yes, this appears fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>