[url] URL.pathname getter for file URLs produces odd result on Windows (#103)

The getter for URL.pathname always prefixes the pathname with / 
https://url.spec.whatwg.org/#dom-url-pathname

That produces odd results in Windows:

parser.href = "file:///C:/Folder/File4.txt"
parser.pathname returns "/C:/Folder/File4.txt"

On Mac/*nix platforms parser.pathname returns a valid OS pathname. On Windows the returned pathname doesn't appear to be a valid pathname: 
https://msdn.microsoft.com/en-gb/library/windows/desktop/aa365247%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396

Looks like URL standard behaviour matches Chrome/Firefox but not IE11 where .pathname returns  "C:/Folder/File4.txt". 



---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/103

Received on Monday, 21 March 2016 18:35:51 UTC