W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2010

Re: A URL API

From: Adam Barth <w3c@adambarth.com>
Date: Wed, 22 Sep 2010 00:49:39 -0700
Message-ID: <AANLkTikxNkkAAvvqfidm7QE1158-TizNoVtpcvYqBsMQ@mail.gmail.com>
To: Darin Fisher <darin@chromium.org>
Cc: Boris Zbarsky <bzbarsky@mit.edu>, WebApps WG <public-webapps@w3.org>
On Sun, Sep 19, 2010 at 10:50 PM, Darin Fisher <darin@chromium.org> wrote:
> On Sun, Sep 19, 2010 at 10:41 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
>>  * A getCommonBaseSpec() method that will take two URIs and return a
>>    URI string they could both be relative to, if any.
>>  * A getRelativeSpec() method that takes two URIs and returns a
>>    string that represents one as a relative URI relative to the
>>    other (if this is possible).
>
> ^^^ these are convenient

I haven't added these yet, but I certainly wouldn't rule out adding
them in the future.

Adam
Received on Wednesday, 22 September 2010 07:56:39 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:40 GMT