【问题标题】:Firefox could not install the search engine from…Firefox 无法从...安装搜索引擎
【发布时间】:2022-01-21 04:20:55
【问题描述】:

我正在尝试使 APLcart 与 OpenSearch 一起使用,但不断获得 Firefox could not install the search engine from: https://aplcart.info/opensearch.xml 与:

<link rel="search" type="application/opensearchdescription+xml" title="APLcart" 
href="/opensearch.xml">

/opensearch.xml 在哪里:

<OpenSearchDescription>
<ShortName>APLcart</ShortName>
<Description>
Search APLcart: A novel approach to finding your way in APL
</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon">https://aplcart.info/favicon.ico</Image>
<Url type="text/html" template="https://aplcart.info/?q={searchTerms}"/>
</OpenSearchDescription>
  • 注意this 不是同一个问题,因为我确实Url type="text/html"
  • 我试过method="get"

我需要更改哪些内容才能使我的 OpenSearch 规范符合要求?

【问题讨论】:

    标签: firefox opensearch


    【解决方案1】:

    你必须使用正确的命名空间

    <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
    

    如果你打开浏览器控制台(CTRL+Shift+J)你可以看到错误信息

    由于命名空间不匹配,搜索插件无效。

    【讨论】:

    • 他们确实有。参见例如view-source:https://stackoverflow.com/opensearch.xml
    • 是的,我一开始并没有意识到 Firefox 在“nice”默认视图中隐藏了 XML 属性。
    猜你喜欢
    • 2016-05-10
    • 2011-04-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-06-16
    • 2019-08-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多