[Webkit-unassigned] [Bug 68513] <input> with autofocus doesn't lose focus when it has a certain onblur listener
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Sep 23 00:34:39 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=68513
--- Comment #11 from Rakesh <rakesh.kn at motorola.com> 2011-09-23 00:34:39 PST ---
(In reply to comment #10)
> (From update of attachment 108129 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=108129&action=review
>
> >>> Source/WebCore/ChangeLog:9
> >>> + (WebCore::HTMLFormControlElement::attach):
> >>
> >> Please explain why we should be modifying this function. Also, my gut tells me calling setIgnoreAutofocus inside attach is wrong.
> >
> > As Autofocus is happening from attach and we have to make sure only this element needs to be focused.
> >
> > We can as well call setIgnoreAutofocus from focusPostAttach callback after setting the focus but I am not sure if we need to check for ignoreAutoFocus before setting the focus.
> >
> > Do you see any side effects of doing that from attach()?
>
> If anything, I'd expect the fix for this bug to be in HTMLInputElement::updateType.
As per my understanding of the specification "The auto-focus content attribute allows the author to indicate that a control is to be focused as soon as the page is loaded" implies "an element can be auto-focused only once". So it seems correct to handle it when we are auto-focusing for first time.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list