<?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>9651</bug_id>
          
          <creation_ts>2010-05-03 23:22:43 +0000</creation_ts>
          <short_desc>autofocus should not work if the focused document is a sub-document</short_desc>
          <delta_ts>2010-10-04 14:49:03 +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>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mounir Lamouri">mounir</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>bugs</cc>
    
    <cc>ian</cc>
    
    <cc>jonas</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</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>35385</commentid>
    <comment_count>0</comment_count>
    <who name="Mounir Lamouri">mounir</who>
    <bug_when>2010-05-03 23:22:43 +0000</bug_when>
    <thetext>If we have:
&lt;html&gt;
&lt;body&gt;
&lt;iframe src=&quot;somewhere&quot;&gt;&lt;/iframe&gt;
&lt;input autofocus&gt;
&lt;/body&gt;
&lt;/html&gt;

If the user is interacting with the iframe before the autofocus event is called for the input, the input shouldn&apos;t be focus.
In other words, when the focused document is a sub-document, if an element from the parent document wants to focus via autofocus it shouldn&apos;t have it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35463</commentid>
    <comment_count>1</comment_count>
    <who name="Lachlan Hunt">lachlan.hunt</who>
    <bug_when>2010-05-06 13:55:56 +0000</bug_when>
    <thetext>The spec already defines:

&quot;User agents may ignore this attribute if the user has indicated (for example, by starting to type in a form control) that he does not wish focus to be changed.&quot;

What you&apos;re asking for is already permitted.  It does not matter whether the user is interacting with another control in the same document, a document in another frame or a control on the browser chrome.  The UA may ignore the autofocus in any or all of those cases.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>