opensearch.js: make completer less strict about json standards compliance
commite282ee4c663bef1fc0a58d6597ac091258acdcb3
authorJohn Foerch <jjfoerch@earthlink.net>
Sat, 13 Nov 2010 00:21:31 +0000 (12 19:21 -0500)
committerJohn Foerch <jjfoerch@earthlink.net>
Sat, 13 Nov 2010 00:21:31 +0000 (12 19:21 -0500)
treeee93cfab198bddbd7ac8c4b9e6b6f16d6fe6149c
parent719fc055a51e98c961fefdd11ed1ce9b7cf52082
opensearch.js: make completer less strict about json standards compliance

An opensearch is given in http://conkeror.org/issue315 that returns json
suggestion data which is not quite standard.  It includes a single
suggestions array followed by some extra data, where we would otherwise
expect one or two optional arrays for descriptions and urls.  This patch
makes the opensearch webjump completer less strict about such auxiliary
data.  It will just ignore it now, rather than abort.

resolves issue315
modules/opensearch.js