This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26197 - Example for "not file" uses a file URL
Summary: Example for "not file" uses a file URL
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: URL (show other bugs)
Version: unspecified
Hardware: All All
: P2 trivial
Target Milestone: Unsorted
Assignee: Anne
QA Contact: sideshowbarker+urlspec
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-25 14:56 UTC by Daniel Bratell
Modified: 2014-06-26 12:00 UTC (History)
1 user (show)

See Also:


Attachments

Description Daniel Bratell 2014-06-25 14:56:14 UTC
http://url.spec.whatwg.org/#parsing

[[
If url's scheme is not
      "file", set
      url's host to
      base's host and
      url's port to
      base's port.

      file:/example.org/
]]

The example for the "scheme is not "file", ..." uses a file url. Strange.
Comment 1 Anne 2014-06-26 12:00:38 UTC
Well, clearly I'm an idiot for thinking that example would be enough. It was introduced here:

https://github.com/whatwg/url/commit/68468e10868914541ca4b36542d413e081916f14

Attempted to clarify it a bit here:

https://github.com/whatwg/url/commit/e3820283d2ca3526b17d9037b86be3d06d2d3b7a

file URL parsing in general needs to be more carefully studied. See bug 23550.