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: 2023-08-23 23:13 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