W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2013

[whatwg] [URL] Cargo-cult naming in URL and matching

From: Alex Russell <slightlyoff@google.com>
Date: Thu, 7 Feb 2013 09:16:25 -0800
Message-ID: <CANr5HFVi7KHpp1w2wrxwWLmBRPfHk-BoYE5KqDy4eA7jKvyDvA@mail.gmail.com>
To: whatwg <whatwg@lists.whatwg.org>
Cc: Jake Archibald <jakearchibald@google.com>
While using the shiny new URL spec in some API work, I've got a couple of
questions, some sparked by Jake's excellent insights:


   1. It doesn't appear straightforward to test if two URL objects
   reference the same path. The serialization algorithm has as flag for
   omitting the fragment, but not the query. Is there something in the API
   that I'm missing that would make this easier than custom-serializing 2 URLs
   to omit queries and then test string equality?
   2. The word "search" seems drived from window.location's use of that. Is
   it only included for compat with window.location? if so, can we drop it and
   spec window.location to use a subclass that provides it?

Thanks.
Received on Thursday, 7 February 2013 17:16:50 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:19 UTC