Bug 102493 - FILESAVE: save to HTML, list elements formatted incorrectly
Summary: FILESAVE: save to HTML, list elements formatted incorrectly
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.2.1.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: (X)HTML-Export
  Show dependency treegraph
 
Reported: 2016-09-24 00:28 UTC by Jim
Modified: 2025-08-23 03:11 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
html format file containing bullet list (2.96 KB, text/html)
2016-09-24 00:28 UTC, Jim
Details
list item html format (158.10 KB, image/png)
2023-08-23 23:13 UTC, Kira Tubo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jim 2016-09-24 00:28:01 UTC
Created attachment 127592 [details]
html format file containing bullet list

In a file saved as HTML, the list elements in a bullet list aren't formatted correctly. Specifically, the li tag is empty (<li/>) and its contents follow it. If the file is previewed in a browser, the HTML is correct. The list elements open with <li> followed by the content and close with </li>. Example file attached.
Comment 1 Buovjaga 2016-10-09 14:29:07 UTC
Please attach original file.

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the document.
Comment 2 Jim 2016-10-10 17:16:50 UTC
I did attach the original file. Are you unable to view it?
Comment 3 Buovjaga 2016-10-10 19:16:37 UTC
(In reply to Jim from comment #2)
> I did attach the original file. Are you unable to view it?

Yeah. But I was expecting an .odt file, so I could test the problem.
Comment 4 Jim 2016-10-14 14:26:38 UTC
Oh, sorry I wasn't clear. The document was never ODT. It was saved in HTML format the very first time.
Comment 5 V Stuart Foote 2016-10-14 17:05:24 UTC
Confirmed New -> HTML Document and enabling a bullets, then typing several lines into the list.

On save the HTML 4 or 5 tag should be 
<ul>
<li>entry first</li>
<li>entry second</li>
</ul>

But here the <li/> to start each list item is weird. Browsers deal with it, but it is not HTML

Version: 5.2.2.2 (x64)
Build ID: 8f96e87c890bf8fa77463cd4b640a2312823f3ad
CPU Threads: 8; OS Version: Windows 6.19; UI Render: GL; 
Locale: en-US (en_US); Calc: group
Comment 6 QA Administrators 2018-08-22 02:36:29 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2020-08-22 03:49:47 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2022-08-23 04:02:27 UTC Comment hidden (obsolete)
Comment 9 Kira Tubo 2023-08-23 23:13:39 UTC
Created attachment 189120 [details]
list item html format

The contents of the list item are available with Writer, but the format of the <li> is incorrect. Either the beginning or the ending of the <li> tag is missing. 

Reproduction steps: 
1. Download attachment 127592 [details] from the web browser
2. Open HTML download in Writer
3. Note that contents of the list is available
4. View > HTML Source 
5. Observe <li> tags


Note: Viewing as HTML Source does not seem to be available in the daily build, so this was tested in the latest stable build: 

Version: 7.5.5.2 (X86_64) / LibreOffice Community
Build ID: ca8fe7424262805f223b9a2334bc7181abbcbf5e
CPU threads: 6; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 10 QA Administrators 2025-08-23 03:11:21 UTC
Dear Jim,

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