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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>23365</bug_id>
          
          <creation_ts>2013-09-26 12:54:15 +0000</creation_ts>
          <short_desc>modify focus steps to move focus to dialog by default</short_desc>
          <delta_ts>2014-01-16 15:10:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>a11y</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>23366</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="steve faulkner">faulkner.steve</reporter>
          <assigned_to name="steve faulkner">faulkner.steve</assigned_to>
          <cc>falken</cc>
    
    <cc>lwatson</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>silviapfeiffer1</cc>
    
    <cc>surkov.alexander</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>93871</commentid>
    <comment_count>0</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2013-09-26 12:54:15 +0000</bug_when>
    <thetext>&quot;Let control be the first element in tree order whose nearest ancestor dialog element is subject and that has an autofocus attribute specified, if any.&quot;


modify this so that focus moves by default(does not need author to do). 

this will make it much better for keyboard/screen reader/screen mag users.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93872</commentid>
    <comment_count>1</comment_count>
    <who name="github bugzilla bot">sideshowbarker+gitzilla</who>
    <bug_when>2013-09-26 12:57:33 +0000</bug_when>
    <thetext>Commit pushed to master at https://github.com/w3c/html

https://github.com/w3c/html/commit/210ea0850ab98bc566f575f4a7913074ea88b6b2
make focus move to dialog

see bug 23365</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93874</commentid>
    <comment_count>2</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2013-09-26 13:02:07 +0000</bug_when>
    <thetext>rationale: currently moving focus to a dialog relies upon the author setting autofocus on one of the focusable elements in the dialog. As we know authors don&apos;t often think about keyboard interaction and if autofocus is not set it will 9as it is currently with custom dialogs) be problematic for SR,keyboard users and screen mag users.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93876</commentid>
    <comment_count>3</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2013-09-26 13:14:12 +0000</bug_when>
    <thetext>see chrome bug - http://code.google.com/p/chromium/issues/detail?id=264959</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93880</commentid>
    <comment_count>4</comment_count>
    <who name="Matt Falkenhagen">falken</who>
    <bug_when>2013-09-26 13:50:48 +0000</bug_when>
    <thetext>&quot;&quot;Let control be the first focusable element in tree order whose nearest ancestor dialog element is subject or that has an autofocus attribute specified.&quot;

Maybe it should be more explicit that autofocus has priority?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93894</commentid>
    <comment_count>5</comment_count>
    <who name="alexander surkov">surkov.alexander</who>
    <bug_when>2013-09-26 15:55:33 +0000</bug_when>
    <thetext>(In reply to Matt Falkenhagen from comment #4)
&gt; &quot;&quot;Let control be the first focusable element in tree order whose nearest
&gt; ancestor dialog element is subject or that has an autofocus attribute
&gt; specified.&quot;
&gt; 
&gt; Maybe it should be more explicit that autofocus has priority?

agree since the statement form is &quot;x or y&quot; then the statement is true whenever x is true, so it can be read as focus first focusable control, otherwise focus unfocusable element having autfocus attribute.

Also, a note, if the change concerns to modal dialogs only then it&apos;s probably fine since modal dialogs must take focus always but it&apos;d double check that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93899</commentid>
    <comment_count>6</comment_count>
    <who name="Matt Falkenhagen">falken</who>
    <bug_when>2013-09-26 17:29:01 +0000</bug_when>
    <thetext>(In reply to alexander surkov from comment #5)
&gt; (In reply to Matt Falkenhagen from comment #4)
&gt; &gt; &quot;&quot;Let control be the first focusable element in tree order whose nearest
&gt; &gt; ancestor dialog element is subject or that has an autofocus attribute
&gt; &gt; specified.&quot;
&gt; &gt; 
&gt; &gt; Maybe it should be more explicit that autofocus has priority?
&gt; 
&gt; agree since the statement form is &quot;x or y&quot; then the statement is true
&gt; whenever x is true, so it can be read as focus first focusable control,
&gt; otherwise focus unfocusable element having autfocus attribute.

True though what I was worried more about is ambiguity over whether the first element in tree order or an element with autofocus gets focus.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94552</commentid>
    <comment_count>7</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2013-10-10 13:44:34 +0000</bug_when>
    <thetext>reverted commit, leaving it up to the acc engineers to work it out with hixie</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94553</commentid>
    <comment_count>8</comment_count>
    <who name="alexander surkov">surkov.alexander</who>
    <bug_when>2013-10-10 13:48:48 +0000</bug_when>
    <thetext>(In reply to steve faulkner from comment #7)
&gt; reverted commit, leaving it up to the acc engineers to work it out with hixie

how it could be wontfix if the fix was landed (comment #1)? Honestly I&apos;m getting confused with number of bugs related to dialog element we have.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94554</commentid>
    <comment_count>9</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2013-10-10 14:03:12 +0000</bug_when>
    <thetext>(In reply to alexander surkov from comment #8)
&gt; (In reply to steve faulkner from comment #7)
&gt; &gt; reverted commit, leaving it up to the acc engineers to work it out with hixie
&gt; 
&gt; how it could be wontfix if the fix was landed (comment #1)? Honestly I&apos;m
&gt; getting confused with number of bugs related to dialog element we have.

i reverted the fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94555</commentid>
    <comment_count>10</comment_count>
    <who name="alexander surkov">surkov.alexander</who>
    <bug_when>2013-10-10 14:21:38 +0000</bug_when>
    <thetext>so the reason of wontfix is as soon as twin WHATWG bug is fixed then the change automatically goes into W3C spec. Correct?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94556</commentid>
    <comment_count>11</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2013-10-10 14:28:40 +0000</bug_when>
    <thetext>(In reply to alexander surkov from comment #10)
&gt; so the reason of wontfix is as soon as twin WHATWG bug is fixed then the
&gt; change automatically goes into W3C spec. Correct?

when/if the whatwg commit comes along unless anybody objects it will be
committed to the HTML spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94557</commentid>
    <comment_count>12</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2013-10-10 14:37:46 +0000</bug_when>
    <thetext>(In reply to steve faulkner from comment #9)
&gt; (In reply to alexander surkov from comment #8)
&gt; &gt; (In reply to steve faulkner from comment #7)
&gt; &gt; &gt; reverted commit, leaving it up to the acc engineers to work it out with hixie
&gt; &gt; 
&gt; &gt; how it could be wontfix if the fix was landed (comment #1)? Honestly I&apos;m
&gt; &gt; getting confused with number of bugs related to dialog element we have.
&gt; 
&gt; i reverted the fix

&gt; Honestly I&apos;m
&gt; getting confused with number of bugs related to dialog element we have.

that&apos;s why i closed this one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97638</commentid>
    <comment_count>13</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2013-12-16 05:30:56 +0000</bug_when>
    <thetext>FYI: adopted commits from WHATWG:

https://github.com/w3c/html/commit/49968eba023dc0d9b74ded165f29e37cfbf0ac81
and
https://github.com/w3c/html/commit/e45d2cbeb7f242aec1825958beb1e552753c7cf2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98597</commentid>
    <comment_count>14</comment_count>
    <who name="github bugzilla bot">sideshowbarker+gitzilla</who>
    <bug_when>2014-01-16 15:10:57 +0000</bug_when>
    <thetext>Commit pushed to CR at https://github.com/w3c/html

https://github.com/w3c/html/commit/210ea0850ab98bc566f575f4a7913074ea88b6b2
make focus move to dialog</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>