Bug 1902004 Comment 2 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

The problem here is that  window.getSelection().toString() returns an empty string:

```js
  e.preventDefault();
  const n = window.getSelection();
  if (n && n.rangeCount > 0) {
    const a = n.getRangeAt(0).cloneContents();
    t(a);
    const o = document.createElement('div');
    o.appendChild(a);
    const s = o.innerHTML;
    e.clipboardData.setData('text/html', s),
    e.clipboardData.setData('text/plain', n.toString())
  }
```
This depends on bug85686 (and related bug1527627)
The problem here is that  window.getSelection().toString() returns an empty string, only in Firefox:

```js
  e.preventDefault();
  const n = window.getSelection();
  if (n && n.rangeCount > 0) {
    const a = n.getRangeAt(0).cloneContents();
    t(a);
    const o = document.createElement('div');
    o.appendChild(a);
    const s = o.innerHTML;
    e.clipboardData.setData('text/html', s),
    e.clipboardData.setData('text/plain', n.toString())
  }
```
This depends on bug85686 (and related bug1527627)

Back to Bug 1902004 Comment 2