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

http://www.w3.org/Bugs/Public/show_bug.cgi?id=9548

           Summary: autofocus attribute should be ignored after the load
                    event
           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,
                    jonas@sicking.cc


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
attribute.

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

-- 
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