[Webkit-unassigned] [Bug 35141] Double-click on a field text select the whole string instead of a sub-string.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 22 12:38:00 PST 2010


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


Darin Adler <darin at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Platform|Macintosh Intel             |Macintosh




--- Comment #2 from Darin Adler <darin at apple.com>  2010-02-22 12:37:59 PST ---
The title of this bug makes it sound more general than it is. Double clicking
selects a word, not the entire contents of a text field. And Mac OS X uses the
Unicode standard’s definition of word boundaries.

The Unicode word breaking algorithm says that a.b.c is a single word. The
in-word periods are considered part of the word and it is one word. End of
sentence periods are different and are not part of the word. The Safari address
field uses an alternate algorithm that is better for URLs, whereas the Safari
search field uses the standard double-clicking algorithm that is better for
English-language test.

I think that programmers and other technical expert are doing to like the idea
of a simpler word algorithm than the Unicode one; one that always treats
periods as word boundaries, even when they are not end-of-sentence periods. I
believe that kind of simpler algorithm is what the other browsers are using.

For fields with URLs in them or email addresses, the simpler algorithm would
probably be better.

When testing this in Safari I discovered that if you double-click on the period
in "a.b.c" only the period is selected. This is *not* consistent with the Mac
OS X platform behavior or the Unicode algorithm and deserves a separate bug
report.

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