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

            Bug ID: 173526
           Summary: Body given gratuitous link color attributes in
                    exported HTML
           Product: LibreOffice
           Version: 27.2.0.0 alpha0+ master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: minor
          Priority: medium
         Component: filters and storage
          Assignee: [email protected]
          Reporter: [email protected]

When we create a new Writer document and save it to HTML, we get something like
the following:

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title></title>
    <meta name="generator" content="LibreOfficeDev 27.2.0.0.alpha0 (Linux)"/>
    <meta name="created" content="2026-09-13T11:08:54.445384505"/>
    <meta name="changed" content="00:00:00"/>
    <style type="text/css">
        @page { size: 21cm 29.7cm; margin: 2cm }
        p { margin-bottom: 0.25cm; line-height: 115%; background: transparent }
    </style>
</head>
<body lang="en-IL" link="#000080" vlink="#800000" dir="ltr"><p
style="margin-bottom: 0cm; line-height: 100%">
<br/>

</p>
</body>
</html>

This bug is about link and vlink attributes of the body element. There are two
problems here:

1. The more significant one is the fact that these attributes exist at all.
There are no links in the document, so there is no good reason to introduce
link coloring information. The default page, paragraph and character styles
have many properties, but almost none of them are reflected in the HTML - since
they are not used.

2. They are expressed via HTML attributes rather than CSS styles. LibreOffice
has the character styles "Internet Link" and "Visited Internet Link" through
which these colors are controlled. In HTML export too, these should be CSS
styles like other styles we already see - probably styles of the <a> element.

Version info (nightly from 2026-08-26):

Version: 27.2.0.0.alpha0+ (X86_64)
Build ID: c49435178ea0e42d0a03bfec52e4990e88307f3b
CPU threads: 4; OS: Linux 6.12; UI render: default; VCL: gtk3
Locale: en-IL (en_IL); UI: en-US

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to