Bug 155742 - FILESAVE HTML Table with merged cells looks broken when opened in Internet Browsers (but ok in LibO)
Summary: FILESAVE HTML Table with merged cells looks broken when opened in Internet Br...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: (X)HTML-Export
  Show dependency treegraph
 
Reported: 2023-06-08 21:53 UTC by Alexander Kurakin
Modified: 2023-08-17 11:24 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Test case file (10.99 KB, application/vnd.oasis.opendocument.text)
2023-06-08 21:54 UTC, Alexander Kurakin
Details
Screenshot - Writer (4.77 KB, image/png)
2023-06-08 21:54 UTC, Alexander Kurakin
Details
Screenshot - HTML (4.16 KB, image/png)
2023-06-08 21:55 UTC, Alexander Kurakin
Details
Validation results (43.99 KB, application/vnd.oasis.opendocument.text)
2023-06-09 09:32 UTC, Rainer Bielefeld Retired
Details
Screenshot of the good version - Writer (4.79 KB, image/png)
2023-06-14 18:01 UTC, Alexander Kurakin
Details
Screenshot of the good version - Browser (2.69 KB, image/png)
2023-06-14 18:01 UTC, Alexander Kurakin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kurakin 2023-06-08 21:53:27 UTC
Export the text case file from bug #155511 ( https://bugs.documentfoundation.org/attachment.cgi?id=187522 , also attached here) as HTML.
Attach the Writer's view and the HTML view.
They are totally different.
Comment 1 Alexander Kurakin 2023-06-08 21:54:20 UTC
Created attachment 187792 [details]
Test case file
Comment 2 Alexander Kurakin 2023-06-08 21:54:55 UTC
Created attachment 187793 [details]
Screenshot - Writer
Comment 3 Alexander Kurakin 2023-06-08 21:55:29 UTC
Created attachment 187794 [details]
Screenshot - HTML
Comment 4 Alexander Kurakin 2023-06-08 22:22:36 UTC
Reproduced in:

Version: 7.4.6.2 / LibreOffice Community
Build ID: 40(Build:2)
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: ru-RU (ru_RU.UTF-8); UI: ru-RU
Gentoo official package
Calc: threaded
Comment 5 Rainer Bielefeld Retired 2023-06-09 09:32:37 UTC
Created attachment 187801 [details]
Validation results

REPRODUCIBLE with installation of Version: 7.5.3.2 (X86_64)
Build ID: 9f56dff12ba03b9acd7730a5a481eea045e468f3
CPU threads: 12; OS: Windows 10.0 Build 19044; UI render: default; VCL: win
Locale: de-DE (de_DE); UI: de-DE |  Elementary Theme  | My normal User Profile |  Calc: threaded

STR:
1. Open reporter's sample document in writer
2. Menu ˋFile → Save as → HTML → [save]ˊ 
3. close LibO
4. Open document from (2) in LibO and also Internet Browsers and compare views
   Expected: Table looks as in original sample document
   Actual: 
      view in LibO more or less ok, like in original sample document
      Table view in Browsers (SeaMonkey, FF, Chromium): completely damaged
       as shown in reporter's screenshot.                                  😥

Additional info:
a) https://validator.w3.org/ tells something like "that's not html" 😉.
Comment 6 Rainer Bielefeld Retired 2023-06-09 09:37:38 UTC
b) currently I see this as a filesave problem
c) But I can't tell whether it is possible to code such a table in html4 
   And so I don`t know whether this is a real bug.
d) already more or less the same in OOo 3.2
Comment 7 Alexander Kurakin 2023-06-09 19:20:02 UTC
Rainer, thanks!

 (In reply to Rainer Bielefeld Retired from comment #6)
> c) But I can't tell whether it is possible to code such a table in html4 
>    And so I don`t know whether this is a real bug.

Why, exactly?
Comment 8 Rainer Bielefeld Retired 2023-06-10 17:05:06 UTC
I don't know whether the HTML4 instructions set allows a table as we find in  Test case file.
Comment 9 Alexander Kurakin 2023-06-14 17:59:50 UTC
(In reply to Rainer Bielefeld Retired from comment #8)
> I don't know whether the HTML4 instructions set allows a table as we find in
> Test case file.

It depends on what you mean.

Case I. "Proportional splitted rows".

1. Open the Writer.
2. Create a table with 1 row and 2 columns.
3. Make borders.
4. Split the 1st cell into 4 rows ("Horizontal", *un*check "Proportional").
5. Split the 2nd cell into 10 rows ("Horizontal", check "Proportional").
6. Click "File" -> "View in browser".
7. It's *OK* (attach the screenshots).

Case II. "Hidden cells".

As discussed at https://bugs.documentfoundation.org/show_bug.cgi?id=155511#c5 .

Then, I don't know here.
Comment 10 Alexander Kurakin 2023-06-14 18:01:17 UTC
Created attachment 187912 [details]
Screenshot of the good version - Writer
Comment 11 Alexander Kurakin 2023-06-14 18:01:52 UTC
Created attachment 187913 [details]
Screenshot of the good version - Browser
Comment 12 Buovjaga 2023-08-17 11:24:15 UTC
The result is OK, if you go via File - Export, but not when via File - Save As.

Arch Linux 64-bit, X11
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a389e6bd7aacfa4e1ff1ea3a46199fb381d1131f
CPU threads: 8; OS: Linux 6.4; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 10 July 2023