Purpose:
The OpenSearch description must contain a "Url" element that describes a template URL for generic search queries. The value of the "rel" attribute of this element must be "results", the value of the "type" attribute must be "text/html".
Test method
- test if the OpenSearch Description provides a generic search queries url
- resolve the generic search queries url and test if it provides a document with content-type "text/html"
Reference(s):
- TG DL, Req 41
- OpenSearch
Test type:
Automated
Notes
- Comment to the TG text: It would be useful to also include a generic wild-card search returning the results as Atom feed in addition to HTML.
The namespace prefixes used as described in README.md.
Abbreviation | XPath expression |
---|---|
url element | /os:OpenSearchDescription/os:Url |
generic search queries url | /os:OpenSearchDescription/os:Url[@rel='results' and @type='text/html']/@template |