Bug 140963

Summary: Fragment scrolling doesn't work properly when there is an element with autofocus content attribute
Product: WebKit Reporter: Rodney Rehm <mail>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: eoconnor, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 202651    

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>