Re: new URI("http://example.com/foo#bar").resolve("")

2010-03-09 Thread Jack Bates
Thanks Chris On Tue, 2010-03-09 at 17:41 +, Christopher Hegarty -Sun Microsystems Ireland wrote: > http://bugs.sun.com/view_bug.do?bug_id=6920138 > > -Chris. > > Jack Bates wrote: > > Thanks again Michael, is there a URL for this bug? Can I check its > > status? > > > > On Tue, 2010-01-26 a

Re: new URI("http://example.com/foo#bar").resolve("")

2010-03-09 Thread Christopher Hegarty -Sun Microsystems Ireland
http://bugs.sun.com/view_bug.do?bug_id=6920138 -Chris. Jack Bates wrote: Thanks again Michael, is there a URL for this bug? Can I check its status? On Tue, 2010-01-26 at 12:16 +, Michael McMahon wrote: Jack, 6920138 is the reference for this bug. Thanks, Michael. Jack Bates wrote: Hi

Re: new URI("http://example.com/foo#bar").resolve("")

2010-03-09 Thread Jack Bates
Thanks again Michael, is there a URL for this bug? Can I check its status? On Tue, 2010-01-26 at 12:16 +, Michael McMahon wrote: > Jack, > > 6920138 is the reference for this bug. > > Thanks, > Michael. > > Jack Bates wrote: > > Hi Michael, > > > > On Mon, 2010-01-25 at 11:20 +, Michael

Re: new URI("http://example.com/foo#bar").resolve("")

2010-01-26 Thread Jack Bates
Thanks Michael On Tue, 2010-01-26 at 12:16 +, Michael McMahon wrote: > Jack, > > 6920138 is the reference for this bug. > > Thanks, > Michael. > > Jack Bates wrote: > > Hi Michael, > > > > On Mon, 2010-01-25 at 11:20 +, Michael McMahon wrote: > > > >> I don't think this is a bug. Eve

Re: new URI("http://example.com/foo#bar").resolve("")

2010-01-26 Thread Michael McMahon
Jack, 6920138 is the reference for this bug. Thanks, Michael. Jack Bates wrote: Hi Michael, On Mon, 2010-01-25 at 11:20 +, Michael McMahon wrote: I don't think this is a bug. Everything to the right of the final "/" in the original URI is discarded when resolving against any relative

Re: new URI("http://example.com/foo#bar").resolve("")

2010-01-26 Thread Michael McMahon
Jack, Yes, you are right. Seems like empty references are a special case. Also, it looks like Firefox agrees with this, but IE(8) behaves the same way as Java currently. I'll create a bug report to track this. The only complication with fixing this would be the behavior change, which could aff

Re: new URI("http://example.com/foo#bar").resolve("")

2010-01-25 Thread Jack Bates
Hi Michael, On Mon, 2010-01-25 at 11:20 +, Michael McMahon wrote: > I don't think this is a bug. Everything to the > right of the final "/" in the original URI is discarded when resolving > against any relative URI. I think you're referring to step 6a) in RFC2396 section 5.2, a) All bu

Re: new URI("http://example.com/foo#bar").resolve("")

2010-01-25 Thread Michael McMahon
I don't think this is a bug. Everything to the right of the final "/" in the original URI is discarded when resolving against any relative URI. So, "foo#bar" is correctly discarded, leaving the new URI http://example.com/ That would be my reading of RFC2396 anyway. - Michael. Jack Bates wrote