Bug 31229

Summary: Cursor movement is confused by excess whitespace
Product: WebKit Reporter: Chris Ridd <chrisridd>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: robin.qiu
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac (Intel)   
OS: OS X 10.6   
Attachments:
Description Flags
Example none

Chris Ridd
Reported 2009-11-07 13:17:24 PST
Created attachment 42700 [details] Example A combination of excess whitespace and inline elements seems to confuse keyboard cursor motion. Reproduce: 1. In the attached example, click after the text "Add". 2. Press cursor left 7 times. The cursor should be in front of the "a" in "Panel". 3. Press cursor left again. Expected Result: The cursor moves to the left of "P". Actual Result: The cursor moves *right* to after the "l" in "Panel". (Cursoring left again will loop again when it goes past the "a".) Workarounds: Removing the excess whitespace in between "Control" and "Panel" fixes the problem. However, removing the spans (and leaving the whitespace) also fixes the problem, so there's something more subtle going on.
Attachments
Example (210 bytes, text/html)
2009-11-07 13:17 PST, Chris Ridd
no flags
Robin Qiu
Comment 1 2010-05-26 01:23:14 PDT
I checked this bug, it was fixed in ToT.
Chris Ridd
Comment 2 2010-05-26 07:35:31 PDT
(In reply to comment #1) > I checked this bug, it was fixed in ToT. Agreed, it seems to be fixed in WebKit build 533.4, which is what Google Chrome 5.0.375.55 is using. WebKit build 531.22.7, which is what Safari 4.0.5 is using, still has the bug. Thanks for checking :-)
Chris Ridd
Comment 3 2010-06-07 23:30:42 PDT
(In reply to comment #2) > (In reply to comment #1) > > I checked this bug, it was fixed in ToT. > > Agreed, it seems to be fixed in WebKit build 533.4, which is what Google Chrome 5.0.375.55 is using. > > WebKit build 531.22.7, which is what Safari 4.0.5 is using, still has the bug. > > Thanks for checking :-) (Final comment) The bug is also fixed in Safari 5 using WebKit build 533.16.
Note You need to log in before you can comment on or make changes to this bug.