Bug 37435 - First and last words of editable span cannot be selected by double-clicking
Summary: First and last words of editable span cannot be selected by double-clicking
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.6
: P2 Normal
Assignee: Nobody
URL:
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2010-04-11 22:11 PDT by Nate Whetsell
Modified: 2010-08-14 08:06 PDT (History)
5 users (show)

See Also:


Attachments
Test document (221 bytes, text/html)
2010-04-11 22:11 PDT, Nate Whetsell
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Whetsell 2010-04-11 22:11:51 PDT
Created attachment 53147 [details]
Test document

Attached is a test HTML document, the body of which consists of an editable span. This span contains the text "111 222 333 444". In Safari version 4.0.5 (6531.22.7, r57458) (533.5+), 222 and 333 can be selected by double-clicking on them. Double-clicking on 111 places the text insertion cursor after the last "1", but does not select any text. Double-clicking on 444 places the text insertion cursor before the first "4", but also does not select any text. 111 and 444 may be selected by other means, however, for example by click-and-dragging or by holding down Shift and using arrow keys. 

If whitespace is added before the first "1", 111 becomes selectable by double-clicking. However, if whitespace is added after the last "4", 444 *does not* become selectable. If any text at all is added after the last "4", 444 becomes selectable.

This bug appears to be related to both bug #36359 and bug #36360. The main difference with this issue is that the attached example shows slightly different behavior in the first and last elements in a span.

This issue does not appear to be present in Firefox 3.6.3.
Comment 1 Nate Whetsell 2010-08-14 08:06:56 PDT
Fixed in r65052.