This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 12867 - Hidden with autofocus
Summary: Hidden with autofocus
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-03 01:14 UTC by rasamassen
Modified: 2011-08-16 04:48 UTC (History)
4 users (show)

See Also:


Attachments

Description rasamassen 2011-06-03 01:14:25 UTC
Include "autofocus" in the list of "The following content attributes must not be specified and do not apply to the element" for <input type="hidden"> :: http://dev.w3.org/html5/spec/states-of-the-type-attribute.html#hidden-state

Autofocus focuses on the control, "allowing the user to just start typing without having to manually focus the main control" - hidden elements cannot be focused on because there is no place for typing.

https://developer.mozilla.org/en/HTML/HTML5/Forms_in_HTML5#The_autofocus_attribute claims autofocus cannot be applied to type="hidden" for that reason, but it's not in the current list of content attributes that must not be specified for hidden.
Comment 1 Michael[tm] Smith 2011-08-04 05:17:02 UTC
mass-move component to LC1
Comment 2 Ian 'Hixie' Hickson 2011-08-16 04:48:14 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: The attributes on that list are only <input>-specific attributes.

Global attributes currently generally have no conformance criteria regarding when they can be used and when they cannot. This may be something we should change, but if so, it's something we should change more generally than just in this context.