Confirmed users, Bureaucrats and Sysops emeriti
812
edits
No edit summary |
(add example) |
||
| Line 45: | Line 45: | ||
If a UA navigates to a search descriptor served with application/opensearchdescription+xml on the same origin (host+scheme+port) as the updateURL, and the updateURL matches, the UA SHOULD simply update the locally stored version. UAs SHOULD NOT prompt the user for confirmation. | If a UA navigates to a search descriptor served with application/opensearchdescription+xml on the same origin (host+scheme+port) as the updateURL, and the updateURL matches, the UA SHOULD simply update the locally stored version. UAs SHOULD NOT prompt the user for confirmation. | ||
== Example Search Descriptor with Update suport == | |||
<pre> | |||
<?xml version="1.0"?> | |||
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> | |||
<ShortName>FooBar</ShortName> | |||
<Description>FooBar Search</Description> | |||
<Image height="16" width="16" type="image/x-icon"> | |||
http://foo.com/favicon.ico | |||
</Image> | |||
<Url type="text/html" | |||
method="get" | |||
template="http://foo.com/search?search={searchTerms}" /> | |||
<Url type="application/x-suggestions+json" | |||
method="get" | |||
template="http://foo.com/suggestions?search={searchTerms}"/> | |||
<Url type="application/x-opensearch-update" | |||
template="https://www.foo.com/searchupdater?version={version}"/> | |||
<Version>42</Version> | |||
<Expires>1222311335</Expires> | |||
</OpenSearchDescription> | |||
</pre> | |||