Download it now!
Bug 126879 - HTML-Export: Doctype doesn't coincide with end of Standalone-Tag
Summary: HTML-Export: Doctype doesn't coincide with end of Standalone-Tag
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
(earliest affected) release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: HTML-Export
  Show dependency treegraph
Reported: 2019-08-13 14:01 UTC by Robert Großkopf
Modified: 2019-08-14 11:17 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Robert Großkopf 2019-08-13 14:01:08 UTC
Open a empty writer page.
Save it as "HTML".
Have a look at the HTML-code.
It will look like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="generator" content="LibreOffice (Linux)"/>

There is a DOCTYPE HTML 4.0 (which is obsolete since 1999!) and every standalone tag ends with "/>", which is only allowed with HTML5 or XHTML.

Two possible solutions:
1) Set <!DOCTYPE html> instead of the very old DOCTYPE. It will set the document to HTML5.
2) Remove all frontslashes followed by ">".

I would prefer to go forward, not back to 1999!

All tested with LO (see above), OpenSUSE 15 64bit rpm Linux.
Comment 1 spots4as 2019-08-14 05:44:59 UTC
confirmed with LO (Ubuntu Mate 18.04)
Comment 2 Robert Großkopf 2019-08-14 07:36:42 UTC
Could also reproduce this in OpenSUSE 15 with LO, the oldest Version, I have installed here.