Bug 140963 - Fragment scrolling doesn't work properly when there is an element with autofocus content attribute
Summary: Fragment scrolling doesn't work properly when there is an element with autofo...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks: 202651
  Show dependency treegraph
 
Reported: 2015-01-27 15:19 PST by Rodney Rehm
Modified: 2019-10-07 13:28 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rodney Rehm 2015-01-27 15:19:11 PST
Specifications:

* http://www.w3.org/TR/html5/forms.html#autofocusing-a-form-control:-the-autofocus-attribute
* http://www.w3.org/TR/html5/browsers.html#scroll-to-fragid

WebKit will scroll to the :target and focus the element if it is focusable.
If it's not focusable, it will still scroll to :target, but focus the element with autofocus attribute set.

Live test case: http://medialize.github.io/ally.js/tests/browser-bugs/blink-autofocus.html#foo
Comment 1 Radar WebKit Bug Importer 2015-01-27 15:19:45 PST
<rdar://problem/19621533>