Closed Bug 1552468 Opened 6 years ago Closed 3 years ago

Copy pasting a `<p>` including a `-moz-user-select: none` styled element adds undesired line breaks

Categories

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

defect

Tracking

()

RESOLVED DUPLICATE of bug 1211737

People

(Reporter: mbrodesser, Unassigned)

Details

STR:

  1. Open data:text/html,<p>x<span style="-moz-user-select: none">y</span>z</p>.
  2. Press CTRL+a to select all text.
  3. Press CTRL+c to copy and press CTRL+v to paste into some text editor.

Expected result:
"xz" is pasted.

Actual result:
"x

z" is pasted.

With Chrome (although with -webkit-user-select instead of -moz-user-select (data:text/html,<p>x<span style="-webkit-user-select: none">y</span>z</p>) this works as expected.

Priority: -- → P2
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.