The browser below provides the ability to export bookmarks (favorites) to bookmarks.html.
I think the format of each bookmarks.html is similar, but please let me know if you know the URL of the bookmarks.html Web standard specification.
(If you don't have web standard specifications, you can use browser vendor documentation.)
You are trying to implement the ability to import bookmarks.html via the File API.
If you export bookmarks in Edge, Firefox, or Chrome, the document type <!DOCTYPE NETSCAPE-Bookmark-file-1>
appears to be the format used since Netscape Navigator.There was an old unofficial document, so I think the following historical points will be helpful.
The vendor's documentation is IE's, but I found the following:
Netscape Bookmark File Format (Internet Explorer) | Microsoft Docs
No MDN or Chromium documents were found.
Rather than having specifications, RFCs, or some kind of documentation, it seems that Netscape-era objects were adopted as the de facto standard in other browsers.Therefore, there may be differences between browsers, but I think we have no choice but to check them one by one.
© 2024 OneMinuteCode. All rights reserved.