Closed Bug 391783 Opened 17 years ago Closed 17 years ago

double-clicking HTML-styled words separated by spaces selects next word in different style

Categories

(Core :: DOM: Selection, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: info, Unassigned)

References

()

Details

(Keywords: regression)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a8pre) Gecko/2007081005 Minefield/3.0a8pre Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a8pre) Gecko/2007081005 Minefield/3.0a8pre ID:2007081005 As mentioned in bug 206141 comment 8, double-clicking <b>aaa</b> <i>bbb</i> <b>ccc</b>&nbsp;&nbsp;<em>ddd</em> selects the entire collection of styled words. Reproducible: Always Steps to Reproduce: 1. View URL above 2. Double-click within series of styled words. Actual Results: Despite the whitespace between them, the entire string of words is selected. Expected Results: Whitespace should end the word selection. Somehow because the whitespace isn't styled, the selection keeps going. Also note how the leading colon before the bold "aaa" is selected.
As this bug is about my comment, I can confirm it. 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. About the last example in the testcase (pipe-separated words), I didn't know it, but I just noticed it also happens for hyphens. Insta-testcase: aaaa-bbbb-cccc-dddd.
Confirming, although I'm pretty sure this is the same as bug 391584.
Severity: minor → normal
Status: UNCONFIRMED → NEW
Depends on: 391584
Ever confirmed: true
Keywords: regression
OS: Windows XP → All
Hardware: PC → All
No longer depends on: 391584
Depends on: 391584
The bug is still present in Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a9pre) Gecko/2007102205 Minefield/3.0a9pre ID:2007102205 but the behavior is slightly different. Double-clicking the last word in one style also selects the next word in the different style, but it no longer selects the whole chunk. So the behavior is now similar to bug 391464 and bug 391584; all three are examples where word selection advances a word too far.
Summary: double-clicking HTML-styled words separated by spaces selects entire set → double-clicking HTML-styled words separated by spaces selects next word in different style
This seems fixed in my Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b2pre) Gecko/2007111104 Minefield/3.0b2pre ID:2007111104 probably as part of the fine work fixing those other bugs. There are subtle differences in the selection of trailing whitespace depending on whether it's in or out of the styling, but I don't consider them bugs.
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.