Live RelativeURL Viewer

The output below will display a RelativeURL's parsed components versus those given by URL from the browser.

RelativeURL is based on the code of jsdom/whatwg-url which closely follows the URL Standard and the associated web-platform-tests.

The output will be colored dark green unless a difference occurs between the two parsers in which case the affected URL component will be colored red.

RelativeURL's components

href
protocol
username
password
port
hostname
pathname
hash

Browser's URL components

href
protocol
username
password
port
hostname
pathname
hash