View Single Post
  #2  
Old May 22nd 20, 09:31 PM posted to microsoft.public.windowsxp.general
JJ[_11_]
external usenet poster
 
Posts: 744
Default Automatically exported bookmarks.html file isn't showing the folder structure.

On Fri, 22 May 2020 11:16:03 +0200, R.Wieser wrote:
Hello all,

A few weeks ago I enabled the exporting of a bookmarks file as HTML, and
today for some reason I decided to open it. What I saw was that although it
contains all the links that I have, apart for for the "Bookmarks Toolbar"
group everything was left-aligned. In other words, no indentation
signifying the different subfolders I have. :-(

And by the way: Why does this "bookmarks.html" file not have html, head and
body tags ? I though that that was mandatory ?


I think it's because it's a Netscape Bookmark specific HTML. Notice that the
HTML file has `NETSCAPE-Bookmark-file-1` document type specified by the
`!DOCTYPE` tag. A DOCTYPE declaration which is not specified according to
the standard specifications in the first place.

The above problem can be solved by changing the "DL" HTML tag into an "UL"
one. The question is, how to I change this in FF ? Is the file perhaps
generated by something inside one of the OMNI.JA files (which can be edited)
?


It's in the main OMNI.JA file (the one which is in the same directory as the
FIREFOX.EXE file). The code is in the `_writeContainer()` method of
`BookmarkExporter` prototype. Which is in below file.

modules\BookmarkHTMLUtils.jsm
Ads