Description: HTTP Anchors work fine as links on pages but fail when contained inside table cells. They appear to work but are lost when reloaded. Steps to Reproduce: 1.create a table in an HTML page. 2.create an anchor inside a table cell. 3.Save page, exit, reload, Anchors (Bookmarks) are gone. Actual Results: Fail Expected Results: Link to anchor in a page table cell. Reproducible: Always User Profile Reset: No Additional Info: Outside of tables, on actual HTML page, Works as expected.
Reproduced in: Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: ad387d5b984c6666906505d25685065f710ed55d CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: threaded Steps: 1. File > New > HTML Document 2. Insert > Table 3. Click in table cell, Insert > Anchor 4. Click outside table, Insert > Anchor 5. View > Navigator: see two bookmarks listed 6. View > HTML Source: only the bookmark outside table is in the code (<a name="Bookmark 2"></a>) 7. Save file Results: bookmark inside the table is also gone from the Navigator.
Code pointer: search for OutBookmarks in https://git.libreoffice.org/core/+/ed172f76005d6e7b861b51199b5d897254b0c76b/sw/source/filter/html/htmlatr.cxx