我正在尝试使用 opensearch 在我的网站 URL 上实现 Tab To Search。我按照 openSearch 文档中的步骤操作,但仍然没有为我工作。请帮我弄清楚我错过了什么。
我的 XML 文件:
<?xml version="1.0"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>localhost</ShortName>
<Description>Search localhost</Description>
<Url type="text/html" method="get" template="localhost:8080/?query={searchTerms}"/>
</OpenSearchDescription>
我在 index.html 文件中的 Head 标签是:
<!doctype html>
<html>
<head>
<link rel="search"
type="application/opensearchdescription+xml"
title="Google IFL"
href="tabToSearch.xml">
</head>