<?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>7128</bug_id>
          
          <creation_ts>2009-07-22 00:16:10 +0000</creation_ts>
          <short_desc>Section 2.3: What happens if setting the DOM focus on ancestor with aria-activedescendent is unsuccessful</short_desc>
          <delta_ts>2010-11-24 20:38:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>ARIA</product>
          <component>Core AAM</component>
          <version>1.0</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andi Snow-Weaver">andi.snowweaver</reporter>
          <assigned_to name="David Bolter">dbolter</assigned_to>
          <cc>dbolter</cc>
          
          <qa_contact name="ARIA UA Implementors">aria-ua-impl</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>26033</commentid>
    <comment_count>0</comment_count>
    <who name="Andi Snow-Weaver">andi.snowweaver</who>
    <bug_when>2009-07-22 00:16:10 +0000</bug_when>
    <thetext>2nd bullet says &quot;Otherwise, if the current element has an ID and an ancestor with the aria-activedescendant attribute present, then set DOM focus to that ancestor. If successful, then set aria-activedescendant on the ancestor to the ID of the desired element.&quot; 

What happens if it is not successful.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37234</commentid>
    <comment_count>1</comment_count>
    <who name="Andi Snow-Weaver">andi.snowweaver</who>
    <bug_when>2010-08-04 18:39:42 +0000</bug_when>
    <thetext>Also note that bullet 5 in the previous section states: 

&quot;If the assistive technology sets focus to a descendant of a container with aria-activedescendant, the user agent MUST change the value of aria-activedescendant to point to that item.&quot;

This seems redundant with the bullet in 3.3 Handling focus changes from the assistive technology and is missing the part about setting focus on the ancestor. Can this bullet be removed from 3.2 Controlling focus with aria-activedescendant.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42599</commentid>
    <comment_count>2</comment_count>
    <who name="David Bolter">dbolter</who>
    <bug_when>2010-11-17 19:33:57 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Also note that bullet 5 in the previous section states: 
&gt; 
&gt; &quot;If the assistive technology sets focus to a descendant of a container with
&gt; aria-activedescendant, the user agent MUST change the value of
&gt; aria-activedescendant to point to that item.&quot;
&gt; 
&gt; This seems redundant with the bullet in 3.3 Handling focus changes from the
&gt; assistive technology and is missing the part about setting focus on the
&gt; ancestor. Can this bullet be removed from 3.2 Controlling focus with
&gt; aria-activedescendant.

Sure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42600</commentid>
    <comment_count>3</comment_count>
    <who name="David Bolter">dbolter</who>
    <bug_when>2010-11-17 19:34:59 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; 2nd bullet says &quot;Otherwise, if the current element has an ID and an ancestor
&gt; with the aria-activedescendant attribute present, then set DOM focus to that
&gt; ancestor. If successful, then set aria-activedescendant on the ancestor to the
&gt; ID of the desired element.&quot; 
&gt; 
&gt; What happens if it is not successful.

Do we need to define that behaviour? I believe on FF focus will go on the nearest focusable parent (up the parent chain).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42611</commentid>
    <comment_count>4</comment_count>
    <who name="David Bolter">dbolter</who>
    <bug_when>2010-11-18 15:32:45 +0000</bug_when>
    <thetext>This is an author error. Inspecting our FF code we do the following:

If an AT requests &apos;takefocus&apos; on an accessible foo that is nested underneath a containing element with an aria-activedescendent attribute FF will set focus on the containing element if it is focusable. If not the best we can really do is attempt to set focus on foo itself.

Perhaps we could say something like this:

&quot;When it is not possible for the user agent to set DOM focus to the containing element with aria-activedescendent, the user agent MAY attempt to set focus to the child element itself. Note: the inability to set focus to the containing element indicates an author error.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42757</commentid>
    <comment_count>5</comment_count>
    <who name="Andi Snow-Weaver">andi.snowweaver</who>
    <bug_when>2010-11-24 20:38:57 +0000</bug_when>
    <thetext>Added suggested text.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>