Re: [url] URL comparison methods (#20)

On Friday, December 19, 2014, Sam Ruby <notifications@github.com> wrote:

> Related: https://www.w3.org/Bugs/Public/show_bug.cgi?id=27640
>
> I agree that working on an API seems useful. Do you know if there is any
> browser interest in adding support for this?
>
>
Yes. I work for Mozilla's DOM team and we would be interested.

I can ask other browser folks to chime in if needed.


>  Three methods that return boolean values should be easy enough to add.
> I'm thinking static methods on the URL object that accept two strings as
> parameters would be a better approach than instance methods on URLUtils.
> Does this seem reasonable?
>

Sounds good - I was thinking the same. However, they could accept either
a URL object or string. URL object might be easier tho; so you don't need
to deal with relative URLs etc.


> —
> Reply to this email directly or view it on GitHub
> <https://github.com/webspecs/url/issues/20#issuecomment-67633412>.
>

---
Reply to this email directly or view it on GitHub:
https://github.com/webspecs/url/issues/20#issuecomment-67641971

Received on Friday, 19 December 2014 14:11:32 UTC