Re: [whatwg] [URL] Starting work on a URL spec

2010-08-04 Thread Bjartur Thorlacius
On Tue, 03 Aug 2010, Adam Barth w...@adambarth.com wrote: On Tue, Aug 3, 2010 at 8:21 AM, bjartur svartma...@gmail.com wrote: On 7/25/10 8:57 AM, Adam Barth wrote: It may not be an _html_ interoperability problem, but it's certainly a _web_ interoperability problem. It's a question of

Re: [whatwg] [URL] Starting work on a URL spec

2010-08-03 Thread bjartur
On 7/25/10 8:57 AM, Adam Barth wrote: There's also the related question of what browsers should do with input typed into the URL field. Other than establishing that these rules may be different between the URL field and URLs present in content, I'm not sure this is amenable to spec.

Re: [whatwg] [URL] Starting work on a URL spec

2010-08-03 Thread Adam Barth
On Tue, Aug 3, 2010 at 8:21 AM, bjartur svartma...@gmail.com wrote: On 7/25/10 8:57 AM, Adam Barth wrote: There's also the related question of what browsers should do with input typed into the URL field. Other than establishing that these rules may be different between the URL field and

Re: [whatwg] [URL] Starting work on a URL spec

2010-07-26 Thread Maciej Stachowiak
On Jul 25, 2010, at 5:57 AM, Adam Barth wrote: 2010/7/24 Maciej Stachowiak m...@apple.com: On Jul 24, 2010, at 9:55 AM, Adam Barth wrote: 2010/7/23 Ian Fette (イアンフェッティ) ife...@google.com: http://code.google.com/apis/safebrowsing/developers_guide_v2.html#Canonicalization lists some

Re: [whatwg] [URL] Starting work on a URL spec

2010-07-26 Thread Maciej Stachowiak
On Jul 25, 2010, at 6:43 AM, Boris Zbarsky wrote: On 7/25/10 8:57 AM, Adam Barth wrote: There's also the related question of what browsers should do with input typed into the URL field. Other than establishing that these rules may be different between the URL field and URLs present in

Re: [whatwg] [URL] Starting work on a URL spec

2010-07-26 Thread Adam Barth
2010/7/26 Maciej Stachowiak m...@apple.com: On Jul 25, 2010, at 5:57 AM, Adam Barth wrote: 2010/7/24 Maciej Stachowiak m...@apple.com: On Jul 24, 2010, at 9:55 AM, Adam Barth wrote: 2010/7/23 Ian Fette (イアンフェッティ) ife...@google.com:

Re: [whatwg] [URL] Starting work on a URL spec

2010-07-26 Thread Maciej Stachowiak
On Jul 25, 2010, at 11:16 PM, Adam Barth wrote: 2010/7/26 Maciej Stachowiak m...@apple.com: On Jul 25, 2010, at 5:57 AM, Adam Barth wrote: 2010/7/24 Maciej Stachowiak m...@apple.com: On Jul 24, 2010, at 9:55 AM, Adam Barth wrote: 2010/7/23 Ian Fette (イアンフェッティ) ife...@google.com:

Re: [whatwg] [URL] Starting work on a URL spec

2010-07-25 Thread Adam Barth
2010/7/24 Maciej Stachowiak m...@apple.com: On Jul 24, 2010, at 9:55 AM, Adam Barth wrote: 2010/7/23 Ian Fette (イアンフェッティ) ife...@google.com: http://code.google.com/apis/safebrowsing/developers_guide_v2.html#Canonicalization lists some interesting cases we've come across on the anti-phishing

Re: [whatwg] [URL] Starting work on a URL spec

2010-07-25 Thread Adam Barth
2010/7/25 Boris Zbarsky bzbar...@mit.edu: On 7/25/10 8:57 AM, Adam Barth wrote: There's also the related question of what browsers should do with input typed into the URL field. Other than establishing that these rules may be different between the URL field and URLs present in content, I'm

Re: [whatwg] [URL] Starting work on a URL spec

2010-07-25 Thread Ian Hickson
On Sun, 25 Jul 2010, Adam Barth wrote: As far as I know, you can only see f(x) = canonicalize(parse(resolve(x))) and also some breakdown components of f(x) in HTMLAnchorElement and window.location.hash (and friends). Can you see the result of resolve(x) without seeing its result go through

Re: [whatwg] [URL] Starting work on a URL spec

2010-07-25 Thread Adam Barth
On Sun, Jul 25, 2010 at 6:05 PM, Ian Hickson i...@hixie.ch wrote: On Sun, 25 Jul 2010, Adam Barth wrote: As far as I know, you can only see f(x) = canonicalize(parse(resolve(x))) and also some breakdown components of f(x) in HTMLAnchorElement and window.location.hash (and friends). Can you

Re: [whatwg] [URL] Starting work on a URL spec

2010-07-25 Thread Boris Zbarsky
On 7/25/10 3:05 PM, Adam Barth wrote: I don't know of any way to do that. I can tell you that in WebKit, the function that usually gets called to resolve URLs (called completeURL if you want to look it up in the source) returns a canonicalized URL. The same is true in Gecko. The way an

Re: [whatwg] [URL] Starting work on a URL spec

2010-07-24 Thread Boris Zbarsky
On 7/24/10 1:50 AM, Brett Zamir wrote: I would be particularly interested in data on this last, across different browsers, operating systems, and locales... There seem to be servers out there expecting their URIs in UTF-8 and others expecting them in ISO-8859-1, and it's not clear to me how to

Re: [whatwg] [URL] Starting work on a URL spec

2010-07-24 Thread Boris Zbarsky
On 7/24/10 2:49 AM, Brett Zamir wrote: By the servers/scripting languages. While it is great that the browsers are involved in the process, I think it would be reasonable to invite the other stake-holders to join the discussions. If they're willing to talk to us, great. My past experience

Re: [whatwg] [URL] Starting work on a URL spec

2010-07-24 Thread Adam Barth
2010/7/23 Ian Fette (イアンフェッティ) ife...@google.com: http://code.google.com/apis/safebrowsing/developers_guide_v2.html#Canonicalization lists some interesting cases we've come across on the anti-phishing team in Google. To the extent you're concerned with / interested in canonicalizaiton, it

Re: [whatwg] [URL] Starting work on a URL spec

2010-07-24 Thread Peter Kasting
On Fri, Jul 23, 2010 at 8:59 PM, Silvia Pfeiffer silviapfeiff...@gmail.comwrote: Is that URLs as values of attributes in HTML or is that URLs as pasted into the address bar? I believe their processing differs... I strongly suggest ignoring browser address bars. As the author of most of the

Re: [whatwg] [URL] Starting work on a URL spec

2010-07-24 Thread Maciej Stachowiak
On Jul 24, 2010, at 9:55 AM, Adam Barth wrote: 2010/7/23 Ian Fette (イアンフェッティ) ife...@google.com: http://code.google.com/apis/safebrowsing/developers_guide_v2.html#Canonicalization lists some interesting cases we've come across on the anti-phishing team in Google. To the extent you're

[whatwg] [URL] Starting work on a URL spec

2010-07-23 Thread Adam Barth
I've begun working on a specification for how browsers process URLs: http://github.com/abarth/url-spec The repository is currently empty, but I'll be adding the basic skeleton over the next few weeks. My intention is to triangulate between how IE, Firefox, Chrome, Safari, and Opera process URLs

Re: [whatwg] [URL] Starting work on a URL spec

2010-07-23 Thread Boris Zbarsky
On 7/23/10 3:11 PM, Adam Barth wrote: Please let me know if you know of any public URL parsing test suites. My main starting point will be the WebKit URL parsing test suite, There's a bit at http://mxr.mozilla.org/mozilla-central/source/netwerk/test/unit/test_standardurl.js I thought there

Re: [whatwg] [URL] Starting work on a URL spec

2010-07-23 Thread Charles McCathieNevile
On Fri, 23 Jul 2010 21:11:35 +0200, Adam Barth w...@adambarth.com wrote: I've begun working on a specification for how browsers process URLs: http://github.com/abarth/url-spec The repository is currently empty, but I'll be adding the basic skeleton over the next few weeks. My intention is to

Re: [whatwg] [URL] Starting work on a URL spec

2010-07-23 Thread Silvia Pfeiffer
Is that URLs as values of attributes in HTML or is that URLs as pasted into the address bar? I believe their processing differs... Good luck with it, anyway. I'm sure you've seen http://esw.w3.org/UriTesting . Cheers, Silvia. On Sat, Jul 24, 2010 at 5:11 AM, Adam Barth w...@adambarth.com wrote:

Re: [whatwg] [URL] Starting work on a URL spec

2010-07-23 Thread Boris Zbarsky
On 7/23/10 11:59 PM, Silvia Pfeiffer wrote: Is that URLs as values of attributes in HTML or is that URLs as pasted into the address bar? I believe their processing differs... It certainly does in Firefox (the latter have a lot more fixup done to them, and there are also differences in terms

Re: [whatwg] [URL] Starting work on a URL spec

2010-07-23 Thread イアンフェッティ
http://code.google.com/apis/safebrowsing/developers_guide_v2.html#Canonicalization lists some interesting cases we've come across on the anti-phishing team in Google. To the extent you're concerned with / interested in canonicalizaiton, it may be worth taking a look at (not to suggest you follow

Re: [whatwg] [URL] Starting work on a URL spec

2010-07-23 Thread Brett Zamir
On 7/24/2010 12:02 PM, Boris Zbarsky wrote: On 7/23/10 11:59 PM, Silvia Pfeiffer wrote: Is that URLs as values of attributes in HTML or is that URLs as pasted into the address bar? I believe their processing differs... It certainly does in Firefox (the latter have a lot more fixup done to