- From: Bjoern Hoehrmann <derhoermi@gmx.net>
- Date: Fri, 08 Feb 2013 14:40:30 +0100
- To: Anne van Kesteren <annevk@annevk.nl>
- Cc: whatwg <whatwg@lists.whatwg.org>, Jake Archibald <jakearchibald@google.com>, Alex Russell <slightlyoff@google.com>
* Anne van Kesteren wrote: >On Fri, Feb 8, 2013 at 12:11 PM, Alex Russell <slightlyoff@google.com> wrote: >> But if I've been vended a URL object from some API, I first have to compare >> the bases. I'd like a way to ask something like "is the full URL >> up-to-and-including this component the same?" E.g., if I have an API that's >> handed two URLs (a and b), I'd like to be able to write something like: >> >> if (a.toString("path") == b.toString("path")) { >> ... >> } > >What you're saying and what your API proposal is saying seems >different. Do you want to compare the path, or do you want to compare >the scheme, host, etc. but not query and fragment? I believe you are supposed to read the code above as "serialize this to a string up to and including the path component" which would be in line with the description. -- Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de 25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
Received on Friday, 8 February 2013 13:40:59 UTC