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)
Tracking
()
RESOLVED
FIXED
People
(Reporter: r_rom, Unassigned)
References
Details
Attachments
(1 file, 1 obsolete file)
558 bytes,
application/xhtml+xml
|
Details |
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.
Comment 2•22 years ago
|
||
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
Comment 3•22 years ago
|
||
Attachment #123621 -
Attachment is obsolete: true
Comment 4•22 years ago
|
||
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.
Comment 5•22 years ago
|
||
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.
Comment 7•19 years ago
|
||
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
Updated•19 years ago
|
Blocks: word-select
Comment 8•18 years ago
|
||
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.
Reporter | ||
Comment 10•17 years ago
|
||
Firefox doesn't select all three words. It selects only the space that follows a word.
Comment 11•17 years ago
|
||
(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?
Comment 12•17 years ago
|
||
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.
Reporter | ||
Comment 13•17 years ago
|
||
S Page, I am using version 2.0.0.6.
Comment 14•17 years ago
|
||
Looks like bug 389421 will fix this...
Assignee: mjudge → nobody
QA Contact: pmac → selection
Comment 15•17 years ago
|
||
-> 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.
Description
•