W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > April 2010

[Bug 9548] New: autofocus attribute should be ignored after the load event

From: <bugzilla@jessica.w3.org>
Date: Sat, 17 Apr 2010 15:44:18 +0000
To: public-html-bugzilla@w3.org
Message-ID: <bug-9548-2486@http.www.w3.org/Bugs/Public/>

           Summary: autofocus attribute should be ignored after the load
           Product: HTML WG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec proposals
        AssignedTo: dave.null@w3.org
        ReportedBy: mounir.lamouri@gmail.com
         QAContact: public-html-bugzilla@w3.org
                CC: ian@hixie.ch, mike@w3.org, public-html@w3.org,

As far as i know, the autofocus attribute has been introduced to help focusing
an element during the page load. To focus an element after the page load, the
javascript focus() method should be enough.
At the moment, inserting an element into the document with the autofocus
attribute specified can be used to prevent using focus(). It has the exact same
behavior and it may be undesirable for some users.

Ignoring the autofocus attribute after the load event (or the
'DOMContentLoaded' event) would be a good way to prevent abuse of the autofocus

Note: if bug 9547 is accepted, the issue would be less important but still

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Saturday, 17 April 2010 15:44:26 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:01:16 UTC