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.
href | |
---|---|
protocol | |
username | |
password | |
port | |
hostname | |
pathname | |
search | |
hash |
href | |
---|---|
protocol | |
username | |
password | |
port | |
hostname | |
pathname | |
search | |
hash |