Closed Bug 463765 Opened 16 years ago Closed 8 years ago

-moz-user-select:none allows arrow key selection and select all

Categories

(Core :: DOM: Selection, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: sephr, Unassigned)

References

()

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3
Build Identifier: 

Ctrl+a (might not select in gtk) or right-click->select (should work on every os) all all of the text in a -moz-user-select:none text input/textarea selects all of the text though not highlighting it (I know this because ctrl+c will copy the 'selected' text). You can navigate the text of a text input/textarea using the left and right arrow keys, though it doesn't bring you up or down a line when you reach a linebreak.

Reproducible: Always

Steps to Reproduce:
1. Make a textarea and set it's style to -moz-user-select:none
2. Put more than 1 line of text into the textarea
3. Try selecting all of the text and seeing if you can copy it.
4. Try navigating the text with the right and left arrow keys.
Actual Results:  
You can do steps 3 and 4.

Expected Results:  
You can not do either steps 3 or 4.
Version: unspecified → Trunk
seems same problem with any element:
testcase: http://jsfiddle.net/u3Vtm/6/

1. press ctrl-A:
2. Webkit: only colored line selected.
3. FF: first line and image selected too.
This bug no longer reproduces. Can someone with the correct access rights close it?
Confirmed, I can't reproduce it either.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: