Bug 106483 - Copy and paste from web page with hyperlink does not copy entire selection
Summary: Copy and paste from web page with hyperlink does not copy entire selection
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.1.4.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Clipboard
  Show dependency treegraph
 
Reported: 2017-03-10 20:19 UTC by bugcatcher1
Modified: 2018-01-29 10:35 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bugcatcher1 2017-03-10 20:19:46 UTC
Description:
When I highlighted a section of a web page and attempted to copy it into a document, only part of the selection was copied.

Steps to Reproduce:
1. Go to this web page [1]. The words “Jesus Christ” are highlighted in yellow, since that was the phrase I searched for.

2. Highlight entire verse [2], including chapter and verse in blue (2 Nephi 26:12), which is a hyperlink,  and
	a. press ctrl-c  OR 
	b. right-click mouse and select copy

3. Copy selection into a document

4. Note that only part of the selection (verse) is copied:
2 Nephi 26:12
[ missing words ]  Jesus is the very Christ, it must needs be that the Gentiles be convinced also that Jesus is the Christ, the Eternal God;
The first part of the verse up to the highlighted word “Jesus” is missing!

5. Scratch head, lol, and repeat steps 2-4 to confirm that it was done correctly
Yes it was done correctly, and is repeatable.

6. Go back to web page and copy only the verse, but NOT the chapter and verse in blue. [3]

7.  Copy selection into a document

8. Note that all of the selection (verse) is copied [3]

9. Write bug report, including source code for specific section of web page [4].
Could it be that the problem is in the “snippet” tag OR , the <h3></h3> pair  OR the <span class="highlight">Jesus</span> pair?

I did a file search of entire git directory structure (libo) and could find no reference to any of these html tags. Where are they handled?



Actual Results:  
Only part of the highlighted section of a web page was copied into writer document.

Expected Results:
Entire highlighted section of a web page should be copied into writer document.


Reproducible: Always

User Profile Reset: No

Additional Info:
[1] https://www.lds.org/scriptures/search?lang=eng&query=Jesus+Christ&testament=bofm&type=verse

[2] 2 Nephi 26:12
      12 And as I spake concerning the convincing of the Jews, that Jesus is the very Christ, it must needs be that the Gentiles be convinced also that Jesus is the Christ, the Eternal God;
The words “Jesus Christ” are highlighted in yellow on the web page, since that was the phrase I searched for.

[3] And as I spake concerning the convincing of the Jews, that Jesus is the very Christ, it must needs be that the Gentiles be convinced also that Jesus is the Christ, the Eternal God;

[4]  <li>
      <h3><a href="https://www.lds.org/scriptures/bofm/2-ne/26.12?lang=eng#11">2 Nephi 26:12</a></h3>
<p><snippet>12 And as I spake concerning the convincing of the Jews, that <span class="highlight">Jesus</span> is the very <span class="highlight">Christ</span>, it must needs be that the Gentiles be convinced also that <span class="highlight">Jesus</span> is the <span class="highlight">Christ</span>, the Eternal God;</snippet></p>
</li>

Linux Mint x64 using cinnamon desktop



User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0
Comment 1 Buovjaga 2017-03-14 13:31:26 UTC
It works fine for me. Maybe try with Paste special (ctrl-shift-v) and ensure that "HTML format" is selected. All methods work for me, though..

Maybe try with version 5.3.

Win 7 Pro 64-bit Version: 5.4.0.0.alpha0+
Build ID: eb7b03b052ffe8c2c577b2349987653db6c53f76
CPU threads: 4; OS: Windows 6.1; UI render: default; 
TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2017-02-26_22:34:18
Locale: fi-FI (fi_FI); Calc: CL

Set to NEEDINFO.
Change back to UNCONFIRMED, if the problem persists. Change to RESOLVED WORKSFORME, if the problem went away.
Comment 2 QA Administrators 2018-01-02 10:14:26 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2018-01-29 10:35:21 UTC
Dear Bug Submitter,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-20180129