A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » General XP issues or comments
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Automatically exported bookmarks.html file isn't showing the folder structure.



 
 
Thread Tools Display Modes
  #1  
Old May 22nd 20, 10:16 AM posted to microsoft.public.windowsxp.general
R.Wieser
external usenet poster
 
Posts: 1,111
Default Automatically exported bookmarks.html file isn't showing the folder structure.

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. :-(

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)
?

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

Regards,
Rudy Wieser


Ads
  #2  
Old May 22nd 20, 09:31 PM posted to microsoft.public.windowsxp.general
JJ[_11_]
external usenet poster
 
Posts: 724
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
  #3  
Old May 23rd 20, 12:29 AM posted to microsoft.public.windowsxp.general
Ralph Fox
external usenet poster
 
Posts: 445
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. :-(

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 was designed (by Netscape) to be an export/import format, not a format for
viewing as HTML.

Netscape would know, when you tried to import it, if it had been edited since
being exported. I have not checked if this feature has been carried forward
into Firefox.


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



That would apply to DOCTYPE html.
This file has a different DOCTYPE.


--
Kind regards
Ralph
🦊
  #4  
Old May 23rd 20, 08:15 AM posted to microsoft.public.windowsxp.general
R.Wieser
external usenet poster
 
Posts: 1,111
Default Automatically exported bookmarks.html file isn't showing the folder structure.

JJ,

I think it's because it's a Netscape Bookmark specific HTML.


... and thus should not assume other browsers wil be able to read-and-display
it. Which ofcourse does away with a nice part of exporting the bookmarks as
html in the first place.

Than again, most browsers are rather forgiving and will display pretty-much
everything. :-)

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


Thanks. It looks like its rather easy to fix (and make a real HTML file
outof it too). Now I only need to decide if its a good idea to do it ...
:-|

Regards,
Rudy Wieser


  #5  
Old May 23rd 20, 08:45 AM posted to microsoft.public.windowsxp.general
R.Wieser
external usenet poster
 
Posts: 1,111
Default Automatically exported bookmarks.html file isn't showing the folder structure.

Ralph,

It was designed (by Netscape) to be an export/import format, not a
format for viewing as HTML.


But they still kept the .html file extension. Thats not in any way creating
expectations ofcourse (especially within the confines of the webbrowser).
:-(

Netscape would know, when you tried to import it, if it had been
edited since being exported. I have not checked if this feature has
been carried forward into Firefox.


Doesn't seem to be - I do not see anything resembling a checksum in the (FF
v52.5) export file.

That would apply to DOCTYPE html.
This file has a different DOCTYPE.


ackk ... ofcourse.

Regards,
Rudy Wieser


  #6  
Old May 23rd 20, 09:13 AM posted to microsoft.public.windowsxp.general
Ralph Fox
external usenet poster
 
Posts: 445
Default Automatically exported bookmarks.html file isn't showing the folder structure.

On Sat, 23 May 2020 09:45:00 +0200, R.Wieser wrote:

Netscape would know, when you tried to import it, if it had been
edited since being exported. I have not checked if this feature has
been carried forward into Firefox.


Doesn't seem to be - I do not see anything resembling a checksum in the (FF
v52.5) export file.



There was nothing resembling a checksum in the Netscape file either.
NS detected editing by a different means, not a checksum.

You could not see what NS used in a normal text editor. You had to
open the original exported file in a hex editor and know exactly what
to look for.


--
Kind regards
Ralph
🦊
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 09:46 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright 2004-2020 PCbanter.
The comments are property of their posters.