Test

Input: "http://&a:foo(b]c@d:2/"

Base: "http://example.org/foo/bar"

Results

agent href exception
whatwg http://&a:foo(b]c@d:2/
testdata http://&a:foo(b]c@d:2/
ietf Invalid character in host: '&a:foo(b]c@d'
safari http://&a:foo(b]c@d:2/
chrome http://&a:foo(b%5Dc@d:2/
firefox http://&a:foo(b%5Dc@d:2/
ie A security problem occurred.
opera http://d:2/

Properties

agent protocol username password hostname port pathname
whatwg http: &a foo(b]c d 2 /
testdata http: &a foo(b]c d 2 /
ietf :
safari :
chrome http: &a foo(b%5Dc d 2 /
firefox http: &a foo(b%5Dc d 2 /
ie A security problem occurred. A security problem occurred. A security problem occurred. A security problem occurred.
opera http: d 2 /

User Agents

whatwg: url.rb

testdata: https://github.com/w3c/web-platform-tests/blob/275544eab54a0d0c7f74ccc2baae9711293d8908/url/urltestdata.txt

ietf: addressable (2.3.6)

safari: Mozilla/5.0 (iPad; CPU OS 8_0_2 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12A405 Safari/600.1.4

chrome: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36

firefox: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0

ie: Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko

opera: Opera/9.80 (Macintosh; Intel Mac OS X 10.9.5) Presto/2.12.388 Version/12.16