gnu-social/plugins
Brion Vibber fedfde9bbb Bookmark plugin: fixes for bad DOM element nesting in delicious import data
delicious bookmark exports use the godawful HTML bookmark file format that ancient versions of Netscape used (and has thus been the common import/export format for bookmarks since the dark ages of the web :)
This arranges bookmark entries as an HTML definition list, using a lot of implied close tags (leaving off the </dt> and </dd>).
DOMDocument->loadHTML() uses libxml2's HTML mode, which generally does ok with muddling through things but apparently is really, really bad about handling those implied close tags.

Sequences of adjacent <dt> elements (eg bookmark without a description, followed by another bookmark "<dt><dt>"), end up interpreted as nested ("<dt><dt></dt></dt>") instead of as siblings ("<dt></dt><dt></dt>").
The first round of code tried to resolve the nesting inline, but ended up a bit funky in places.
I've replaced this with a standalone run through the data to re-order the elements, based on our knowing that <dt> and <dd> cannot directly contain one another; once that's done, our main logic loop can be a bit cleaner. I'm not 100% sure it's doing nested sublists correctly, but these don't seem to show up in delicious export (and even if they do, with the way we flatten the input it shouldn't make a difference).

Also fixed a clearer edge case where some bookmarks didn't get imported when missing descriptions.
2010-12-31 12:09:54 -08:00
..
Adsense Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
AnonymousFave Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
APC Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
ApiLogger Tweak for OAuth headers not seen in $_SERVER 2010-10-28 00:14:45 +00:00
Autocomplete Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
AutoSandbox Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
Awesomeness L10n updates and removal of superfluous whitespace. 2010-12-16 16:33:39 +01:00
BitlyUrl Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
Blacklist Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
BlankAd Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
BlogspamNet Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
Bookmark Bookmark plugin: fixes for bad DOM element nesting in delicious import data 2010-12-31 12:09:54 -08:00
CacheLog Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
CasAuthentication Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
ClientSideShorten Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
Comet Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
DirectionDetector Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
DiskCache Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
Disqus Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
Echo Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
EmailAuthentication Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
EmailSummary Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
Enjit Superfluous whitespace removed. 2010-09-20 20:40:55 +02:00
Facebook Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
FacebookBridge Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
FirePHP Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
FollowEveryone Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
ForceGroup Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
Geonames Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
GeoURL Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
GoogleAnalytics Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
Gravatar Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
GroupFavorited Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
Imap Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
InfiniteScroll Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
InProcessCache Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
LdapAuthentication Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
LdapAuthorization Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
LdapCommon In LdapCommon checkPassword/changePassword only get the 'dn' attribute as an optimization as no other attributes are necessary. 2010-12-17 17:22:52 -05:00
LilUrl Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
Linkback Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
LinkPreview Makefile to compress LinkPreview's js 2010-12-22 15:04:50 -08:00
LogFilter Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
Mapstraction Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
Memcache Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
Memcached Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
Meteor Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
Minify Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
Mobile Init for WAP 2.0 and XHTML Mobile Profile support. WAP20Plugin is a 2009-10-02 11:46:14 +00:00
MobileProfile Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
ModHelper Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
ModPlus Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
Mollom Use plugin configuration instead of common_config() 2010-01-06 00:20:15 -05:00
NoticeTitle Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
OpenExternalLinkTarget Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
OpenID Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
OpenX Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
Orbited htmloutputter->script() special cases src's that begin with plugin/ or local/ so that plugins don't need to include common_path() in every call to $action->script() 2010-02-17 12:03:14 -05:00
OStatus Merge branch '0.9.x' into noactor 2010-12-29 15:29:29 -08:00
PiwikAnalytics Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
PostDebug Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
PoweredByStatusNet Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
PtitUrl Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
Realtime Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
Recaptcha Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
RegisterThrottle Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
RequireValidatedEmail Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
ReverseUsernameAuthentication Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
RSSCloud Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
Sample Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
ShareNotice Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
SimpleUrl Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
Sitemap Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
SlicedFavorites Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
SphinxSearch Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
Spotify Move standalone plugin files into subdirectories so they can have locale data, etc added to them at leisure. 2010-09-15 14:10:18 -07:00
SQLProfile only run explain on selects 2010-12-17 12:08:46 -08:00
SubMirror Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
SubscriptionThrottle Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
TabFocus Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
Template Move standalone plugin files into subdirectories so they can have locale data, etc added to them at leisure. 2010-09-15 14:10:18 -07:00
TightUrl Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
TinyMCE Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
TwitterBridge Update Twitter calls to use documented API endpoints 2010-12-17 15:57:22 -08:00
UrlShortener Assigning my copyrights to the Free Software Foundation 2010-05-27 18:27:33 -04:00
UserFlag Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
UserLimit Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
WikiHashtags Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
WikiHowProfile Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
XCache Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
YammerImport Localisation updates from http://translatewiki.net. 2010-12-16 16:30:30 +01:00
README-plugins add a quickie plugins/ dir readme mentioning how to add plugins, plus ref to wiki pages 2010-01-18 09:37:42 -08:00