michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /** michael@0: * This file works on the old-style "bookmarks.html" file. It includes michael@0: * functions to import and export existing bookmarks to this file format. michael@0: * michael@0: * Format michael@0: * ------ michael@0: * michael@0: * Primary heading := h1 michael@0: * Old version used this to set attributes on the bookmarks RDF root, such michael@0: * as the last modified date. We only use H1 to check for the attribute michael@0: * PLACES_ROOT, which tells us that this hierarchy root is the places root. michael@0: * For backwards compatibility, if we don't find this, we assume that the michael@0: * hierarchy is rooted at the bookmarks menu. michael@0: * Heading := any heading other than h1 michael@0: * Old version used this to set attributes on the current container. We only michael@0: * care about the content of the heading container, which contains the title michael@0: * of the bookmark container. michael@0: * Bookmark := a michael@0: * HREF is the destination of the bookmark michael@0: * FEEDURL is the URI of the RSS feed if this is a livemark. michael@0: * LAST_CHARSET is stored as an annotation so that the next time we go to michael@0: * that page we remember the user's preference. michael@0: * WEB_PANEL is set to "true" if the bookmark should be loaded in the sidebar. michael@0: * ICON will be stored in the favicon service michael@0: * ICON_URI is new for places bookmarks.html, it refers to the original michael@0: * URI of the favicon so we don't have to make up favicon URLs. michael@0: * Text of the container is the name of the bookmark michael@0: * Ignored: LAST_VISIT, ID (writing out non-RDF IDs can confuse Firefox 2) michael@0: * Bookmark comment := dd michael@0: * This affects the previosly added bookmark michael@0: * Separator := hr michael@0: * Insert a separator into the current container michael@0: * The folder hierarchy is defined by
/