Closed Bug 206141 Opened 22 years ago Closed 17 years ago

Double-click selection of bold word doesn't stop at punctuation signs

Categories

(Core :: DOM: Selection, defect)

x86
Windows XP
defect
Not set
minor

Tracking

()

RESOLVED FIXED

People

(Reporter: r_rom, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030516 Mozilla Firebird/0.6 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030516 Mozilla Firebird/0.6 When I am trying to select a word that has bold formatting by double clicking on it, punctuation signs don't act as word delimiters Reproducible: Always Steps to Reproduce: 1. Open a page that contains a bold word followed by a punctuation sign (e.g. period, comma). 2. Doubleclick on the word. Actual Results: Selection includes the punctuation sign. Expected Results: Only the word should have been selected. The punctuation sign should be outside formatting HTML tags, as it's usually done. When the punctuation sign is inside the tags, selection is done correctly.
This also happens with other inline elements. I have uploaded a better testcase. For this to happen, the punctuation must be outside the inline element.
Assignee: general → mjudge
Severity: normal → minor
Status: UNCONFIRMED → NEW
Component: Browser-General → Selection
Ever confirmed: true
QA Contact: general → pmac
Attachment #123621 - Attachment is obsolete: true
I should also note that in attachment 123625 [details], the " " space character is also being selected on a double-click. That particular (mis)behaviour may be related to bug 200098.
Correction - I had meant attachment 123621 [details].
While I hate it that the space is also selected, I didn't think it was a bug because IE does it too. And MS Word. Probably some others too.
Adding "double-click" and "word" to the summary, so this would be easier to find.
Summary: Selection of bold text doesn't stop at punctuation signs → Double-click selection of bold word doesn't stop at punctuation signs
Blocks: word-select
Is this the same problem as double-clicking selecting more than one word? Simple testcase: data:text/html,<b>aaaa</b>%20<b>bbbb</b>%20<b>cccc</b> Trunk is affected by this, but the Firefox 2 branch is not.
(In reply to comment #8) > Is this the same problem as double-clicking selecting more than one word? > Simple testcase: data:text/html,<b>aaaa</b>%20<b>bbbb</b>%20<b>cccc</b> No, this bug is specifically that one punctuation character following an inline HTML style is selected on double-click. It still happens with Minefield 2007080910. But your example is really odd (double-click selects all three words despite the spaces between them) and deserves its own bug if not filed already.
Firefox doesn't select all three words. It selects only the space that follows a word.
(In reply to comment #8) I filed bug 391783 about double-clicking a series of HTML-styled words selecting the lot in Minefield trunk. (In reply to comment #10) Roman R., Both this bug and bug 391783 happen in my Minefield 2007081005 (Firefox 3 pre-alpha) trunk build on Windows XP. What version of Firefox are you using?
Quoting my own bug 391783 comment 1, as I feel it's worth mentioning here: > However, I still personally feel this is technically the same bug as bug > 206141. I would describe the two bugs in a more general manner as follows: > Word boundaries are ignored when they coincide with inline element boundaries.
S Page, I am using version 2.0.0.6.
Looks like bug 389421 will fix this...
Assignee: mjudge → nobody
QA Contact: pmac → selection
Depends on: 389421
-> FIXED (by bug 389421)
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: