[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 18:13:33 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=52241
--- Comment #13 from Eric Seidel <eric at webkit.org> 2011-01-12 18:13:32 PST ---
(In reply to comment #12)
> (In reply to comment #11)
> > (From update of attachment 78764 [details] [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?
Sorry I read those both as 'abc', now I understand why the complexity is needed.
--
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