Closed Bug 66136 Opened 24 years ago Closed 24 years ago

Selecting last character in line should highlight whole line

Categories

(Core :: DOM: Selection, defect)

PowerPC
Mac System 8.5
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 46784
mozilla0.8

People

(Reporter: mpt, Assigned: mjudge)

Details

(Keywords: platform-parity)

Build: 2001011912, Mac OS 9.0

To reproduce:
* In any HTML text form control, or XP Toolkit textfield, or editor (e.g.
  message composition window), enter some text.
* Select all the text (e.g. by typing Command+A).

What should happen:
* The whole of the lines containing the selected text should be highlighted with
  the selection color.

What actually happens:
* Just the characters in the text are highlighted.

This bug is most clearly visible in textareas and Composer -- if you select a
line which contains only a line break, there is no visual indication that you
have selected the line at all.
-> selection
Assignee: beppe → mjudge
Component: Editor → Selection
QA Contact: sujay → blakeross
Matthew--I think this is a duplicate of bug #46784.  If not, please reopen.
(Note: #46784 isn't intended to be specific to textareas; it should apply to all 
editors)


*** This bug has been marked as a duplicate of 46784 ***
Status: NEW → RESOLVED
Closed: 24 years ago
OS: Mac System 8.5 → All
Hardware: Macintosh → All
Resolution: --- → DUPLICATE
Target Milestone: --- → mozilla0.8
Well, this bug is pp for Ma OS, and bug 46784 is on Windows. Both bugs solve 
the problem of not being able to see a selected line, but they solve it in 
different ways on different OSes.

A carriage return should be treated as an invisible character which is the same 
width as a space character (but which does not affect the width of a line for 
wrapping purposes). When this character is selected on Windows, it should be 
highlighted (this is how native apps, other than Internet Explorer, behave). 
When it is selected on Mac OS, however, the entire line should be highlighted.

You can see the difference by typing a few characters in a native text field on 
either OS, and then selecting all the characters; on Windows, the characters 
will be highlighted, whereas on Mac OS the entire field will be highlighted.

So this is a dup only if you want to cover both implementations in bug 46784 at 
once.
Keywords: pp
OS: All → Mac System 8.5
Hardware: All → Macintosh
You need to log in before you can comment on or make changes to this bug.