Bug 129743 - "autofocus" attribute handling is not compatible with other browsers
Summary: "autofocus" attribute handling is not compatible with other browsers
Status: RESOLVED DUPLICATE of bug 203139
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: data:text/html,<input autofocus> <inp...
Keywords: BlinkMergeCandidate, InRadar
Depends on:
Blocks: 202651
  Show dependency treegraph
Reported: 2014-03-05 09:53 PST by David Kilzer (:ddkilzer)
Modified: 2019-10-17 22:11 PDT (History)
5 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description David Kilzer (:ddkilzer) 2014-03-05 09:53:52 PST
From <https://code.google.com/p/chromium/issues/detail?id=336346>:

Version: All
OS: All

What steps will reproduce the problem?
1. Open the following URL:
   data:text/html,<input autofocus> <input autofocus>

What is the expected output? What do you see instead?
Expected: According to the standard, Firefox, and IE11, the first <input> gets focus.
Actual: The second <input> gets focus.
Comment 1 David Kilzer (:ddkilzer) 2014-03-05 09:55:39 PST
Comment 2 David Kilzer (:ddkilzer) 2014-03-05 09:57:44 PST
Blink merge candidate:  <http://src.chromium.org/viewvc/blink?view=rev&rev=165459>
Comment 3 Kent Tamura 2019-08-16 02:56:19 PDT
The autofocus processing algorithm will be updated by https://github.com/whatwg/html/pull/4763.

Anyway, "data:text/html,<input autofocus> <input autofocus>" should still focus on the first <input>.
Comment 4 Ryosuke Niwa 2019-10-17 22:09:39 PDT
New behavior will be implemented in https://bugs.webkit.org/show_bug.cgi?id=203139 instead.
Comment 5 Ryosuke Niwa 2019-10-17 22:11:13 PDT

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