Bug 36548 - HTML import: display of nested tables broken
Summary: HTML import: display of nested tables broken
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.6.1.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:html
: 98550 (view as bug list)
Depends on:
Blocks: HTML-Import
  Show dependency treegraph
 
Reported: 2011-04-24 12:14 UTC by Christina Rossmanith
Modified: 2022-12-23 10:58 UTC (History)
9 users (show)

See Also:
Crash report or crash signature:


Attachments
Small document with nested tables. (749 bytes, text/html)
2011-04-24 12:14 UTC, Christina Rossmanith
Details
Screenshot - LibreOffice (39.96 KB, image/png)
2011-04-24 12:18 UTC, Christina Rossmanith
Details
Screenshot - Firefox (1.17 KB, image/png)
2011-04-24 12:19 UTC, Christina Rossmanith
Details
The test shows how a nested table in the second cell appears unexpectedly in the first one (782 bytes, text/html)
2022-12-23 10:58 UTC, maxerist
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christina Rossmanith 2011-04-24 12:14:03 UTC
Created attachment 46027 [details]
Small document with nested tables.

Table with one row which has two columns. Each column consists of a table. These tables should be displayed side by side but are displayed one below the other.
Comment 1 Christina Rossmanith 2011-04-24 12:18:20 UTC
Created attachment 46029 [details]
Screenshot - LibreOffice
Comment 2 Christina Rossmanith 2011-04-24 12:19:11 UTC
Created attachment 46030 [details]
Screenshot - Firefox
Comment 3 Björn Michaelsen 2011-12-23 12:06:26 UTC Comment hidden (obsolete)
Comment 4 Florian Reisinger 2012-08-14 13:59:52 UTC Comment hidden (obsolete)
Comment 5 Florian Reisinger 2012-08-14 14:01:01 UTC Comment hidden (obsolete)
Comment 6 Florian Reisinger 2012-08-14 14:05:46 UTC Comment hidden (obsolete)
Comment 7 Florian Reisinger 2012-08-14 14:07:47 UTC Comment hidden (obsolete)
Comment 8 sasha.libreoffice 2012-08-31 10:14:13 UTC
in 3.6.1 on Fedora 64 bit still reproducible
Comment 9 Alexandr 2014-12-31 10:39:43 UTC
Reproducible with LibreOffice 4.3.3 and 4.4.0.beta2 on Debian.
Comment 10 Robinson Tryon (qubit) 2015-12-10 01:09:44 UTC Comment hidden (obsolete)
Comment 11 Buovjaga 2016-03-09 19:29:01 UTC
*** Bug 98550 has been marked as a duplicate of this bug. ***
Comment 12 r.valihanov 2016-03-10 07:21:43 UTC
Reproducible with LibreOffice 5.1.0.3 (x64) on Windows 8.1 Pro x64.
Comment 13 Alexey Khoroshilov 2017-04-10 17:25:41 UTC Comment hidden (obsolete)
Comment 14 Telesto 2017-05-07 18:30:53 UTC
Confirming with:
Version: 5.4.0.0.alpha1+
Build ID: 274ecb49b70b3f01d47546e3b44317946c106042
CPU threads: 4; OS: Windows 6.2; UI render: default; 
TinderBox: Win-x86@62-TDF, Branch:MASTER, Time: 2017-05-05_22:45:07
Locale: nl-BE (nl_NL); Calc: single
Comment 15 QA Administrators 2018-11-07 04:02:03 UTC Comment hidden (obsolete)
Comment 16 Alexey Khoroshilov 2018-11-07 15:15:09 UTC Comment hidden (obsolete)
Comment 17 QA Administrators 2019-11-08 03:37:25 UTC Comment hidden (obsolete)
Comment 18 lioncub 2019-11-11 17:04:24 UTC
Версия: 6.3.3.2
ID сборки: 1:6.3.3-0ubuntu0.18.04.1~lo1
Потоков ЦП: 4; ОС:Linux 4.15; Отрисовка ИП: по умолчанию; VCL: gtk3; 
Локаль: ru-RU (ru_RU.UTF-8); Язык интерфейса: ru-RU
Calc: CL

Bug is present.
Comment 19 QA Administrators 2021-11-11 04:14:48 UTC Comment hidden (obsolete)
Comment 20 Alexey Khoroshilov 2021-11-13 11:44:14 UTC
Reproducible in
Version: 7.2.2.2 / LibreOffice Community
Build ID: 1eb16ced50a80b7125fabf09652dbb09393766d2
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: gtk3
Comment 21 maxerist 2022-12-23 10:57:08 UTC
What I found that might help to fix the issue.

The issue is about nested tables when importing existing html files consisting them. For the bug to reveal itself some specific properties should be true.
• We have a main table with at least one row
• In the main table there's a nested table in the second (it's important) cell. The first cell might contain anything, simple text or another nested table. 
• The second cell should start with the table tag (of the nested table). So no plain text and no another tag before the table tag 

What we expect: to see the nested table in the second cell as was formatted
What we see: the table moves into the first cell after the "official" contents of the first cell.   

If the second cell contains some text or other tag before the nested table, the bug doesn't appear. This probably explains why it's not seen too often in the wild, most nested table appear with some kind of description. Also this might be a current workaround for someone who for example generates an html that should be rendered correctly in the current versions of LibreOffice. 

I'll attach a self-explanatory html example (Libre-Self-Explain-Example.html) that illustrates what I explained.
Comment 22 maxerist 2022-12-23 10:58:51 UTC
Created attachment 184326 [details]
The test shows how a nested table in the second cell appears unexpectedly in the first one