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: 2022-07-01 10:20 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