{"id":163,"date":"2005-04-21T10:14:00","date_gmt":"2005-04-21T17:14:00","guid":{"rendered":"http:\/\/antone.geckotribe.com\/alpha-gecko\/2005\/04\/21\/bookmarkshtml-is-busted\/"},"modified":"2006-03-24T19:51:31","modified_gmt":"2006-03-25T02:51:31","slug":"bookmarkshtml-is-busted","status":"publish","type":"post","link":"https:\/\/zeta.geckotribe.com\/alpha-gecko\/bookmarkshtml-is-busted\/","title":{"rendered":"bookmarks.html is busted"},"content":{"rendered":"<p>The bookmarks file generated by Mozilla is busted. The other day, I tried to create an XHTML file to turn my bookmarks file into a CSS-powered cascading menu, but I ran into a problem: since bookmarks.html doesn't have closing tags for many of its elements, I couldn't get the CSS styles applied as desired. Mozilla--please convert your bookmarks file to XHTML to enable this kind of thing.<\/p>\n<p>Here's what my XHTML file loked like (yeah, I know, I'm missing the XML delcaration and DOCTYPE):<\/p>\n<p><code>&lt;html&gt;<br \/>\n&lt;head&gt;<br \/>\n &lt;title&gt;Antone's Bookmarks&lt;\/title&gt;<br \/>\n &lt;link rel=\"stylesheet\" type=\"text\/css\" href=\"bookmarks.css\" \/&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;body&gt;<\/p>\n<p>&lt;object<br \/>\n data=\"file:\/\/\/asdf\/Mozilla\/Profiles\/qwerty\/foobar\/bookmarks.html\"<br \/>\n type=\"text\/html\"<br \/>\n style=\"height:400px;width:100%;\"&gt;<br \/>\n&lt;\/object&gt;<\/p>\n<p>&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/code><\/p>\n<p>The whole purpose of this file is to apply a stylesheet to bookmarks.html. Thus, it links to a stylesheet, and uses the \"object\" element to import my bookmarks file.<\/p>\n<p>Here's my bookmarks.css file:<\/p>\n<p><code>body {<br \/>\n background:#fff;<br \/>\n}<\/p>\n<p>dl {<br \/>\n display:block;<br \/>\n margin:0;<br \/>\n padding:0;<br \/>\n list-style:none;<br \/>\n width:150px;<br \/>\n border-bottom:1px solid #03c;<br \/>\n position:absolute;<br \/>\n left:0px;<br \/>\n top:19px;<br \/>\n font-weight:normal;<br \/>\n text-align:left;<br \/>\n}<\/p>\n<p>dl dl { display:none; }<\/p>\n<p>dl dl {<br \/>\n left:149px;<br \/>\n top:0;<br \/>\n}<\/p>\n<p>dl dt { position:relative; }<\/p>\n<p>a {<br \/>\n display:block;<br \/>\n text-decoration:none;<br \/>\n color:#fff;<br \/>\n background:#03c;<br \/>\n padding:3px 5px;<br \/>\n border:1px solid #03c;<br \/>\n border-bottom:0;<br \/>\n}<\/p>\n<p>a:hover {<br \/>\n color:#039;<br \/>\n background:#eee;<br \/>\n text-align:left;<br \/>\n}<\/p>\n<p>dl:hover&gt;p&gt;dl { display:block; }<br \/>\ndl:hover { text-align:left; }<\/p>\n<p>dd {<br \/>\n display:none;<br \/>\n}<\/code><\/p>\n<p>I'm not sure whether this is exactly how it should look--since it didn't work, I couldn't test it. But it's adapted from a stylesheet that converts unordered lists into cascading menus, so it's certainly close.<\/p>\n<p>Oh well, maybe someday.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The bookmarks file generated by Mozilla is busted. The other day, I tried to create an XHTML file to turn my bookmarks file into a CSS-powered cascading menu, but I ran into a problem: since bookmarks.html doesn't have closing tags for many of its elements, I couldn't get the CSS styles applied as desired. Mozilla--please...<br \/>[<a class=\"moretag\" href=\"https:\/\/zeta.geckotribe.com\/alpha-gecko\/bookmarkshtml-is-busted\/\">read more<\/a>]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,33],"tags":[],"class_list":["post-163","post","type-post","status-publish","format-standard","hentry","category-internet","category-issuesproblems"],"_links":{"self":[{"href":"https:\/\/zeta.geckotribe.com\/alpha-gecko\/wp-json\/wp\/v2\/posts\/163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zeta.geckotribe.com\/alpha-gecko\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zeta.geckotribe.com\/alpha-gecko\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zeta.geckotribe.com\/alpha-gecko\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zeta.geckotribe.com\/alpha-gecko\/wp-json\/wp\/v2\/comments?post=163"}],"version-history":[{"count":0,"href":"https:\/\/zeta.geckotribe.com\/alpha-gecko\/wp-json\/wp\/v2\/posts\/163\/revisions"}],"wp:attachment":[{"href":"https:\/\/zeta.geckotribe.com\/alpha-gecko\/wp-json\/wp\/v2\/media?parent=163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zeta.geckotribe.com\/alpha-gecko\/wp-json\/wp\/v2\/categories?post=163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zeta.geckotribe.com\/alpha-gecko\/wp-json\/wp\/v2\/tags?post=163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}