Bug 121049 - Failure to retain superscript when pasting from HTML, if sup elements have a class
Summary: Failure to retain superscript when pasting from HTML, if sup elements have a ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Paste
  Show dependency treegraph
 
Reported: 2018-10-30 05:40 UTC by Nicholas van Oudtshoorn
Modified: 2024-07-01 03:14 UTC (History)
2 users (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 Nicholas van Oudtshoorn 2018-10-30 05:40:57 UTC
Description:
When copying HTML from the web and pasting it into writer, superscripts aren't retained if the HTML superscript has a class associated with it.

FORMATTING

Steps to Reproduce:
1.Visit https://www.biblegateway.com/passage/?search=John+1&version=NLT
2.Copy some of the text (verse numbers are superscript!) and paste it into Writer. Notice that the verse numbers are no longer superscript.
3.Using your web browser's developer tools, remove the class from some of the <sup> tags. Try the copy and paste again, and the verse numbers remain superscripted.

Actual Results:
<sup> tags with classes don't retain superscript display in Writer.

Expected Results:
Superscript text should stay superscripted when pasted


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.2.0.0.alpha1+
Build ID: 96cf06c947838120e37f3fbb4d0543dd882cb20c
CPU threads: 4; OS: Linux 4.18; UI render: default; VCL: kde4; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2018-10-25_22:45:16
Locale: en-AU (en_AU.UTF-8); Calc: threaded
Comment 1 Nicholas van Oudtshoorn 2018-10-30 05:44:29 UTC
Note that this seems to be a very old bug. I know that I've been working around it for ages. Web search shows people talking about it since 2014, and simply saying "work around it" - https://forum.openoffice.org/en/forum/viewtopic.php?f=7&t=69389
Comment 2 Durgapriyanka 2018-11-29 16:55:37 UTC
I can confirm that the bug is present in

Version: 6.0.6.2
Build ID: 0c292870b25a325b5ed35f6b45599d2ea4458e77
CPU threads: 2; OS: Windows 6.1; UI render: default; 
Locale: en-US (en_US); Calc: group
Comment 3 QA Administrators 2021-01-23 04:03:48 UTC Comment hidden (obsolete)
Comment 4 Nicholas van Oudtshoorn 2021-01-25 02:25:51 UTC
Still present!

Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: 5dea5dbb99b1925b2ecc2b2882d8cef30fe50d27
CPU threads: 4; OS: Linux 5.10; UI render: default; VCL: kf5
Locale: en-AU (en_AU.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-01-19_09:52:25
Calc: threaded
Comment 6 QA Administrators 2024-07-01 03:14:12 UTC
Dear Nicholas van Oudtshoorn,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug