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