[Libreoffice-bugs] [Bug 126879] New: HTML-Export: Doctype doesn't coincide with end of Standalone-Tag

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Aug 13 14:01:08 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=126879

            Bug ID: 126879
           Summary: HTML-Export: Doctype doesn't coincide with end of
                    Standalone-Tag
           Product: LibreOffice
           Version: 6.3.0.4 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: filters and storage
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: robert at familiegrosskopf.de

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 6.3.0.4 (Linux)"/>
<br/>

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 6.3.0.4 (see above), OpenSUSE 15 64bit rpm Linux.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190813/a4f6ceb0/attachment.html>


More information about the Libreoffice-bugs mailing list