This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
See https://github.com/annevk/url/issues/1 From Domenic: var base = new URL("file:///C:/Users/Domenic/Dropbox/Programming/GitHub/jsdom/test/jsdom/index.js"); var resolved = new URL("/", base); console.log(resolved.href); Gives "file:///", but should give "file:///C:/".
http://code.google.com/p/chromium/issues/detail?id=257354 has other cases the specification is not handling. file URLs definitely need more research :/
I wonder if it might be better to treat looking for and resolving "file:" URIs might be best described as a preprocessor, that web applications would use and non-web applications might leave out.
It would be interesting to have the results for these: / against file:/// / against file://x/ / against file:///C:/ /C|/ against file:/// /C:/ against file://x/ /C:/ against file:///C:/
And those tests, but then with the input prefixed with "file:", just to make sure.
https://github.com/whatwg/url/commit/09cd673a338e7abc552140d950c4f34d7d71362a