medialize/URI.js — pull request #78 by djcsdy (2013-04-15 18:21:46+00:00)
Title: Fix several questionable .relativeTo() results.

Thanks for fixing #75 – that fixed the specific cases that I raised.

However, there are several more things that I think aren’t quite right about `.relativeTo()`.

May I humbly suggest the attached changeset?

Hopefully the test cases that I have added and changed speak for themselves, but I’m happy to explain my rationale if anything is controversial, or to be corrected if I’m being silly :).