Bug 117402 - Invalid HTML for nested lists with Impress Preview in Web Browser
Summary: Invalid HTML for nested lists with Impress Preview in Web Browser
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
6.1.0.0.alpha1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: HTML-Import
  Show dependency treegraph
 
Reported: 2018-05-03 07:29 UTC by lechten
Modified: 2023-05-18 14:41 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample presentation with nested list (11.33 KB, application/vnd.oasis.opendocument.presentation)
2018-05-03 07:31 UTC, lechten
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lechten 2018-05-03 07:29:40 UTC
Description:
In Impress, function File->Preview in Web Browser generates the presentation in HTML. Nested lists lead to invalid HTML, where sublists are not part of the preceding list item.  See there for a discussion how HTML lists may look like:
https://stackoverflow.com/questions/5899337/proper-way-to-make-html-nested-list
Option 1 is what Impress produces, while option 2 would be correct.

Steps to Reproduce:
1. Open new presentation
2. Create nested list
3. Validate HTML shown after File->Preview in Web  Browser

Actual Results:  
Invalid HTML.
I'm not sure whether this will be displayed correctly, but I'll try anyways:

<ul>
<li>A list item</li>
<ul>
<li>Deeper Nesting</li>
</ul>
</ul>

Expected Results:
Valid HTML

<ul>
<li>A list item
<ul>
<li>Deeper Nesting</li>
</ul></li>
</ul>


Reproducible: Always


User Profile Reset: No



Additional Info:


User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0
Comment 1 lechten 2018-05-03 07:31:30 UTC
Created attachment 141856 [details]
Sample presentation with nested list

The attachment provides a sample presentation with a nested list.
Comment 2 Julien Nabet 2018-05-05 07:44:28 UTC
On pc Debian x86-64 with master sources updated yesterday, I could reproduce this.
Comment 3 Julien Nabet 2018-05-07 14:08:37 UTC
Miklos: I noticed f0e3a36f6508dcfa0a3c672e15e15f3582e02110 and tried it locally.
Badfully it didn't work but thought you might be interested in this one since it may concern the same code area.
Comment 4 QA Administrators 2019-05-09 03:02:19 UTC Comment hidden (obsolete)
Comment 5 lechten 2019-05-15 06:41:41 UTC
The bug is still present with the newest stable version:
Version: 6.2.3.2
Build ID: aecc05fe267cc68dde00352a451aa867b3b546ac
CPU threads: 2; OS: Linux 4.14; UI render: default; VCL: gtk2; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded
Comment 6 QA Administrators 2021-05-15 04:17:45 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2023-05-16 03:18:10 UTC Comment hidden (obsolete)
Comment 8 lechten 2023-05-18 14:41:52 UTC
The bug is still present in 7.5.3.2 (X86_64). Build: https://gerrit.libreoffice.org/gitweb?p=core.git;a=log;h=9f56dff12ba03b9acd7730a5a481eea045e468f3