whatwg / whatwg/html

Failure from resolving the url is ignored when using custom scheme and content handlers

Open
#481 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

clarification needs tests topic: custom protocols
Dominant language
HTML
Stars
9.4k
Forks
3.2k
Avg merge
3d 9h
Merged PRs (30d)
38

Description

When the user agent uses this handler, it must replace the first occurrence of the exact literal string "%s" in the url argument with an escaped version of the absolute URL of the content in question (as defined below), then resolve the resulting URL, relative to the API base URL specified by the entry settings object at the time the registerContentHandler() or registerProtocolHandler() methods were invoked, and then navigate an appropriate browsing context to the resulting URL.

It might be the case that this can never fail because of the way the URL is constructed; in that case, a note would be nice.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the HTML Standard for the registerContentHandler() and registerProtocolHandler() steps quoted in the issue. Check whether resolving the constructed URL can fail; clarify the specification there and add a note only if failure is impossible. Done means the URL-resolution behavior and any impossibility note are explicit.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.