Mikhus/domurl

Relative protocol not honoured in IE

Open

#6 opened on Nov 11, 2013

View on GitHub
 (3 comments) (0 reactions) (0 assignees)JavaScript (531 stars) (100 forks)batch import
help wanted

Description

(Found in IE10)

new Url('//url-with-relative-protocol.co.uk/blah').toString();
// actual     ->  'url-with-relative-protocol.co.uk/blah'
// expected 1 ->  '//url-with-relative-protocol.co.uk/blah'
// expected 2 ->  [current page's protocol] + '//url-with-relative-protocol.co.uk/blah'

Contributor guide