Przeszukaj pomoc

Unikaj oszustw związanych z pomocą.Nigdy nie będziemy prosić Cię o dzwonienie na numer telefonu, wysyłanie SMS-ów ani o udostępnianie danych osobowych. Zgłoś podejrzaną aktywność, korzystając z opcji „Zgłoś nadużycie”.

Learn More

I did a COPY of some text from a web page, and then did a PASTE into notepad.exe (Windows). The text from each line was duplicated -- on the line! Instead of "Fred", it became "Fred Fred".

  • 1 odpowiedź
  • 1 osoba ma ten problem
  • 5 wyświetleń
  • Ostatnia odpowiedź od cor-el

more options

I just recently installed Firefox for the first time. It seems nice and quick. The version is reported as: "10.0.1".

I wanted to save some text from a web page, so navigated to that page, selected the text, and pressed the Control-C combination to COPY the selected text to the buffer. For example, the text I selected looked something like this:

  Harry
  Ron
  Hermione
  Hagrid
  Albus

NOTE: Each line of text has a small icon to the left of the text. It is not reasonable to COPY and PASTE each line individually, as there can be hundreds of lines of data. I recall, however, that doing a COPY and PASTE on this data into Microsoft's Excel will produce cells which have the icons included in the cell, but unfortunately one cannot can't get rid of them! At least I've never found a way to remove them, but that's another issue.  :)

Once I'd done the COPY operation I switched to a Notepad window and did a PASTE operation. To my surprise, the text from each line was duplicated. It looked like this:

  Harry Harry
  Ron Ron
  Hermione Hermione
  Hagrid Hagrid
  Albus Albus

Thinking that there might be something unusual about the web page I looked at the source, but it appeared "normal" -- that is, as expected.

Note: I have done this operation several times before, and have never seen this occur before.

Note: In the actual data some of the lines have quoted text in them. Curiously there is weird behavior on these lines. In some cases the entire line is shown only once. (These occur at the top of the line, and the quoted text is at the beginning of the name.) When quoted text appears "later" in the name, in some cases the quoted text is duplicated, and in other cases the quoted text is missing altogether! I have also noticed an error with the quoted text, and so will be reporting that to the web site which generates the HTML.

Note that each line of "text" is "anchor text", so if I click on a name the browser navigates to a page for that name.

I believe that the problem is that the COPY operating in Firefox is not simply copying the visible text, but also the ALT=

Below is a sample of what the source HTML looks like:


<a class="lnk" target="_blank" href="http://details.aspx?id=Harry">                                
   <img width="16" height="16" alt="Harry" class="tb_icon" src="http://.../Harry.gif"/>
   <span>Harry</span></a>


(Because of the true length of the lines in the source HTML, I have stripped out the actual URL of the site.)

To make sure I wasn't imaging this difference I repeated the process within Internet Explorer. In that browser I did not get duplicated data.

I just recently installed Firefox for the first time. It seems nice and quick. The version is reported as: "10.0.1". I wanted to save some text from a web page, so navigated to that page, selected the text, and pressed the Control-C combination to COPY the selected text to the buffer. For example, the text I selected looked something like this: Harry Ron Hermione Hagrid Albus NOTE: Each line of text has a small icon to the left of the text. It is not reasonable to COPY and PASTE each line individually, as there can be hundreds of lines of data. I recall, however, that doing a COPY and PASTE on this data into Microsoft's Excel will produce cells which have the icons included in the cell, but unfortunately one cannot can't get rid of them! At least I've never found a way to remove them, but that's another issue. :) Once I'd done the COPY operation I switched to a Notepad window and did a PASTE operation. To my surprise, the text from each line was duplicated. It looked like this: Harry Harry Ron Ron Hermione Hermione Hagrid Hagrid Albus Albus Thinking that there might be something unusual about the web page I looked at the source, but it appeared "normal" -- that is, as expected. Note: I have done this operation several times before, and have never seen this occur before. Note: In the actual data some of the lines have quoted text in them. Curiously there is weird behavior on these lines. In some cases the entire line is shown only once. (These occur at the top of the line, and the quoted text is at the beginning of the name.) When quoted text appears "later" in the name, in some cases the quoted text is duplicated, and in other cases the quoted text is missing altogether! I have also noticed an error with the quoted text, and so will be reporting that to the web site which generates the HTML. Note that each line of "text" is "anchor text", so if I click on a name the browser navigates to a page for that name. I believe that the problem is that the COPY operating in Firefox is not simply copying the visible text, but also the ALT= Below is a sample of what the source HTML looks like: &lt;a class="lnk" target="_blank" href="http://details.aspx?id=Harry"> &lt;img width="16" height="16" alt="Harry" class="tb_icon" src="http://.../Harry.gif"/> &lt;span>Harry&lt;/span>&lt;/a> <br/> (Because of the true length of the lines in the source HTML, I have stripped out the actual URL of the site.) To make sure I wasn't imaging this difference I repeated the process within Internet Explorer. In that browser I did not get duplicated data.

Zmodyfikowany przez cor-el w dniu

Wszystkie odpowiedzi (1)

more options

Wybrane rozwiązanie