在测试以确保OpenSearch适用于我的网站时,我收到错误消息“Firefox无法从以下位置下载搜索插件:”点击搜索提供程序将其添加到Firefox。
以下是我的OpenSearch的源代码......
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>Example</ShortName>
<Description>Search www.example.com</Description>
<Image height="16" width="16" type="image/vnd.microsoft.icon">http://www.example.com/favicon.ico</Image>
<InputEncoding>UTF-8</InputEncoding>
<Url method="get" template="http://www.example.com/search/?q={searchTerms}&source=opensearch" type="application/xhtml+xml" />
</OpenSearchDescription>
产生此错误的错误是什么?
答案 0 :(得分:2)
没有text / html Url元素:
https://developer.mozilla.org/en/docs/Creating_OpenSearch_plugins_for_Firefox
请注意,您必须包含text / html网址 - 搜索插件包括 只有Atom或RSS URL类型(有效,但Firefox没有 支持)还会生成“无法下载搜索插件” 错误。
我自己也遇到了同样的问题!