Closed Bug 57808 Opened 24 years ago Closed 24 years ago

Content with display:none should not be selected

Categories

(Core :: DOM: Selection, defect, P3)

defect

Tracking

()

VERIFIED DUPLICATE of bug 39098

People

(Reporter: bzbarsky, Assigned: mjudge)

Details

Mozilla trunk build 2000102221. If I have the following HTML: a<SPAN STYLE="display:none">b</SPAN>c and I select it with the mouse, the selection contains "abc" even though I can only see "ac" on the screen. This presents a security problem if I then paste the selected content somewhere (an xterm for example), since I may not be pasting what I think I have selected. It seems to me that selecting text should only select what the user sees...
Is this allowed by the DOM range spec?
Confirming for discussion.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: PC → All
See also bug 35148, style="text-transform: uppercase;" should copy as uppercase, possibly invalid. Mozilla currently matches IE's behavior for both display:none and text- transform:uppercase.
is this a possible duplicate of bug 39098?
*** This bug has been marked as a duplicate of 39098 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
vrfy dup
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.