[Webkit-unassigned] [Bug 68876] Input element created at later stage(may be after page load) should not be auto focused.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 3 06:08:22 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=68876





--- Comment #11 from Rakesh <rakesh.kn at motorola.com>  2011-10-03 06:08:22 PST ---
(In reply to comment #10)
> 
> My investigation:
> Firefox 6 and 7 Mac: Failed with autofocus-opera-004, 005, and 006.
> Opera 11.51 Mac: Failed with autofocus-opera-008
> IE10 on Windows 8: Failed with autofocus-opera-006 and 008.
> 
> IMO, we should do nothing at this moment. Autofocusing on an element with autofocus attribute is what a web page author wants to do even after the page loading has been completed, and the standard allows it.

True, but if focus is already set at some other node then I think it would be better to ignore the 'autofocus', that is what Opera or Firefox does if you run the attached test case (focus is on "Click me" button and not on the newly created input element).

What I observed in Opera and firefox is when I click on button, autofocus is not honored, also better test I tried :  

function onLoad()
{
  setTimeout(addInputElement, 2000);
}
and I start typing something in existing input element, the focus does not move to newly created element where as in webkit it moves to new element.

-- 
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