Bug 231529 - Make autofocus a global attribute
Summary: Make autofocus a global attribute
Status: RESOLVED DUPLICATE of bug 232349
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-10-11 13:47 PDT by Tim Nguyen (:ntim)
Modified: 2021-10-28 09:42 PDT (History)
2 users (show)

See Also:


Attachments
WIP (8.73 KB, patch)
2021-10-12 00:56 PDT, Tim Nguyen (:ntim)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Nguyen (:ntim) 2021-10-11 13:47:31 PDT
autofocus is currently limited to these current elements: https://webkit-search.igalia.com/webkit/rev/549cfddb2c8f134d24510de87c8bbb41c20e055c/Source/WebCore/html/HTMLFormControlElement.cpp#229-238

However, autofocus is a global attribute, so editable elements or tabindex > -1 elements should be autofocusable as well.
Comment 1 Tim Nguyen (:ntim) 2021-10-12 00:56:19 PDT
Created attachment 440904 [details]
WIP
Comment 2 Radar WebKit Bug Importer 2021-10-18 13:48:19 PDT
<rdar://problem/84385920>
Comment 3 Chris Dumez 2021-10-28 07:32:51 PDT
Seems we should dupe to bug 232349 ?
Comment 4 Tim Nguyen (:ntim) 2021-10-28 09:42:42 PDT

*** This bug has been marked as a duplicate of bug 232349 ***