Bug 111396 - Exported HTML files always lack title
Summary: Exported HTML files always lack title
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.3.4.2 release
Hardware: All All
: lowest enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: (X)HTML-Export
  Show dependency treegraph
 
Reported: 2017-08-05 13:31 UTC by Paul
Modified: 2022-07-15 15:30 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul 2017-08-05 13:31:14 UTC
Exporting a file to HTML will always lack title.
Comment 1 Regina Henschel 2017-08-05 22:41:37 UTC
If you set a title in the documents properties, then the HTML-document will have this as content of the <title> element. If you leave this document property empty, then the HTML-document will have an empty <title> element, but it exists.

If you export your document to XHTML and you do not provide a title in the document properties, an ersatz <title xml:lang="en-US">- no title specified</title> is written.

We might consider to write this ersatz text in case of HTML too. But because it is a user error, if he does not specify a title, I consider this lowest importance.
Comment 2 Paul 2017-08-06 04:21:10 UTC
That's a really horrible and confusing user experience. The document properties aren't even exposed sufficiently. Surely if a user sets a style as title, that should set the title in the document properties?

While I accept that it's user error and thus of the lowest importance, it's most certainly the fault of poor user experience design.
Comment 3 QA Administrators 2018-08-22 02:37:31 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2020-08-22 03:49:51 UTC Comment hidden (obsolete)
Comment 5 Christophe Strobbe 2022-05-16 21:16:07 UTC
I confirm the behaviour described by Regina Henschel in Comment 1 using LibreOffice Writer 7.1.4.2 on OpenSUSE 15.2:

Version: 7.1.4.2 / LibreOffice Community
Build ID: 10(Build:2)
CPU threads: 8; OS: Linux 5.5; UI render: default; VCL: kf5
Locale: en-GB (en_GB.utf8); UI: en-GB
Calc: threaded

Note that the accessibility checker in LibreOffice Writer 7.x checks whether the Title property has been filled in ("Document title is not set") but remains silent when the Title property contains only white space (see the newly submitted Bug 149115).

Paul's suggestion to fill in the Title property when the author marks a span of text with the Title style makes sense. However, Writer should then warn the user when:
1. the Title property has already been set; and
2. another part of the document has already been marked with the Title style.

The Accessibility Checker currently runs automatically when a document is exported to PDF (assuming the checker has bee enabled in the LibreOffice options). When it is more mature, it should also run when saving a document as HTML or exporting it as XHTML.
Comment 6 Michael Warner 2022-07-15 15:30:50 UTC
Based on above discussion, it sounds like this is not a bug, so I have changed it to an enhancement. In my opinion, it should be of medium priority instead of lowest, but I do not have ability to change that.