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)
Core
DOM: Selection
Tracking
()
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...
Comment 1•24 years ago
|
||
Is this allowed by the DOM range spec?
Comment 2•24 years ago
|
||
Confirming for discussion.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: PC → All
Comment 3•24 years ago
|
||
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.
Comment 5•24 years ago
|
||
*** This bug has been marked as a duplicate of 39098 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•