Closed Bug 774965 Opened 12 years ago Closed 1 year ago

Double click to select Chinese word not a sentence

Categories

(Core :: Internationalization, defect)

13 Branch
x86
Windows 7
defect

Tracking

()

RESOLVED DUPLICATE of bug 1719535

People

(Reporter: sunjw8888, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: intl)

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20100101 Firefox/13.0.1 Build ID: 20120614114901 Steps to reproduce: Double click on a Chinese word in page(not in <input/> element) Actual results: Firefox selects a whole sentence (until a Chinse comma) Expected results: Firefox should select a word not the sentence and neither a Chinese character. Just like behavior of Google Chrome. And if triple click, Firefox should select the sentence just like what it does now when double click. It will be useful for non-English users.
Component: Untriaged → General
Component: General → Event Handling
Product: Firefox → Core
Version: unspecified → 13 Branch
Can you please attach a small testcase ?
Component: Event Handling → Selection
Attached file A test page
Attachment #643379 - Attachment mime type: text/plain → text/html
The screenshot shows different behavior between Firefox and Chrome.
I think that Google Chrome uses icu lib to detect non-English word.
Additional that the best word segmentation in the test case is: 这是/一段/测试/文字,这是/第二/段/测试/文字。
Keywords: intl
Component: Selection → Internationalization
In Bug 390048, it seems that something has been done before.
See Also: → 1569566
Severity: normal → S3

This bug is fixed by bug 1719535. Tested on Firefox Nightly 2023-08-07. When I double-click on "测试", it selects "测试" instead the entire sentence "这是一段测试文字".

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1719535
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: