Closed yhojann-cl closed 2 years ago
It it a feature.
$ node
Welcome to Node.js v17.9.0.
Type ".help" for more information.
> new URL('udp://example.com:53');
URL {
href: 'udp://example.com:53',
origin: 'null',
protocol: 'udp:',
username: '',
password: '',
host: 'example.com:53',
hostname: 'example.com',
port: '53',
pathname: '',
search: '',
searchParams: URLSearchParams {},
hash: ''
}
By example:
udp://example.com:53
is a valid uri for this component but in the browsers theURL
object only parsehttp|https
. Is a feature or a bug according to standar?