Live URL Viewer

The output below will display a URL's parsed components from the browser versus those given by jsdom/whatwg-url.

jsdom/whatwg-url closely follows the URL Standard and the associated web-platform-tests, so this serves as a good comparison versus the standard itself.

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.

Browser's URL components

href
protocol
username
password
port
hostname
pathname
hash

jsdom/whatwg-url's components

href
protocol
username
password
port
hostname
pathname
hash