Re: A URL API

On Sun, Sep 19, 2010 at 10:41 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 9/20/10 1:02 AM, Adam Barth wrote:
>> I've updated the document:
>>
>> https://docs.google.com/document/edit?id=1r_VTFKApVOaNIkocrg0z-t7lZgzisTuGTXkdzAk4gLU&hl=en#
>
> General comments based on a quick read (and ignoring various typos that I
> figure we'll fix in due course):
>
> 1)  The reference chain for actually parsing a URI terminates in HTML5
> referencing the IRI RFC, which doesn't seem to define a parsing algorithm.
>  Did I just miss it?

I'm working on fixing that problem too:

http://github.com/abarth/url-spec/blob/master/drafts/url.txt

> 2)  Why lastPathComponent as opposed to, say, fileName?

Renamed to fileName.

> 3)  Why is lastPathComponent readonly?

Made mutable.

> 4)  Things Gecko has on its URI objects that this seems to be missing
>    and that might be useful and aren't obviously available via
>    existing facilities of this interface:

I'll look at these in detail later.

Adam

Received on Monday, 20 September 2010 05:52:54 UTC