Closed Bug 1538534 Opened 5 years ago Closed 5 years ago

ordered list is copied without numbers

Categories

(Core :: DOM: Selection, defect)

66 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1285715

People

(Reporter: pavel.pilat, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0

Steps to reproduce:

  1. open W3schools page about lists - https://www.w3schools.com/html/html_lists.asp
  2. copy all four elements of the ordered list in the top of the page on the right hand side (First item .... fourth item) to the clipboard
  3. paste them into Notepad

Actual results:

All the items from the ordered list paste in without numbers.

Expected results:

The items should be pasted WITH numbers. If I can read the list with numbers online why can't I copy the list to my file and read it WITH the numbering later?

Has STR: --- → yes

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0

Hi,

Related to this report, I think there is not an issue with Firefox, because is the same behavior in all browsers that I checked(Chrome and Internet Explorer). It won't work to copy that numbers, because the numbers are not part of the text. They are generated by the browser. To be copyable text, the numbers would have to be in the text itself. That is the behavior of the HTML and browser when using lists.

Thank for your report.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID

I do not agree. When someone writes:

<ol>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
<li>Fourth item</li>
</ol>

he actually writes "1." with the first <li>, "2." with the second <li> etc. because he uses <ol> - that is "ordered list". And that's what I'd like to copy. If he does not intend to have the numbers there he will use simple line breaks (<br>) or paragraphs (<p>
).

IE 11 DOES copy the numbers along with the text:

screenshot

Hi,

Based on comment 2, I'm going to set a component so developers can take a look at it. If this is not the right component, please feel free to move it to a more appropriate one.

Thank you for collaboration.

Status: RESOLVED → UNCONFIRMED
Component: Untriaged → Selection
Product: Firefox → Core
Resolution: INVALID → ---
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.