[Webkit-unassigned] [Bug 52241] REGRESSION(r69831): focus() in onkeypress discards input (affects chaseonline.chase.com)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 12 17:41:43 PST 2011


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





--- Comment #12 from Ryosuke Niwa <rniwa at webkit.org>  2011-01-12 17:41:42 PST ---
(In reply to comment #11)
> (From update of attachment 78764 [details])
> > LayoutTests/fast/forms/focus-change-on-keypress.html:36
> > +    if (shouldChangeSelection)
> > +        expected = name == 'textarea' ? 'ac\n' : 'acb';
> > +    else
> > +        expected = name == 'textarea' ? 'a\nc' : 'abc';
> 
> This seems slightly odd way to write this if, but oK. :)

Maybe I should do:

if (name == 'textarea')
    expected = shouldChangeSelection ? 'ac\n' : 'a\nc'
else
    expected = shouldChangeSelection ? 'acb' : 'abc'

instead?

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