Create a link with a query to search on the user chosen default search engine
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 9.4k
- Forks
- 3.2k
- PR merge metrics
- PR metrics pending
Description
Today if a website wants to add a link that opens a search engine, it needs to pick one of bing, baidu, duckduckgo, google, or others.
What if the website wants to open the user defined search engine instead? Most browsers provide a search mechanism in the address bar today and it has become the default (to be confirmed)
Proposal:
Even though there's plenty of explanation
for <a href="search://?q=what does the fox say?" target="_blank" rel="noreferrer">What Does The Fox Say</a>,
today you are really going to hear what does it have to say.
A polyfill as a fallback could be to use the website tailored search engine url, but most browsers for privacy sake doesn't allow JavaScript to detect what is the search engine of the current browser session.
You can find a relatable behavior described with x-web-search:// at https://www.macstories.net/tutorials/launch-a-web-search-in-safari-from-other-ios-apps/
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the proposed search://?q=... URL behavior in the issue and the related x-web-search:// example. Compare the proposal with how browsers expose address-bar search and consider the privacy implications described. Done requires an agreed HTML Standard behavior and a clear specification of how user-defined search engines would handle the link.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100