medialize/URI.js — pull request #19 by byroot (2012-03-17 18:47:57+00:00)
Title: Handle scheme relative URIs

Add support for scheme relative URLs like `//example.com/file.html`

Also note that the URL tested here: https://github.com/medialize/URI.js/blob/gh-pages/test/urls.js#L349 is invalid and should throw an error on parsing, or at least consider the whole string as a path.

Example:

//a248.e.akamai.net/assets.github.com/images/modules/header/logov7@4x.png

![Valid relative URL](//a248.e.akamai.net/assets.github.com/images/modules/header/logov7@4x.png)

://a248.e.akamai.net/assets.github.com/images/modules/header/logov7@4x.png

![Invalid URL](://a248.e.akamai.net/assets.github.com/images/modules/header/logov7@4x.png)