<span class="Apple-style-span" style="-webkit-text-stroke: none; -webkit-transform-origin-z: 0px; -webkit-transform-style: 50%; ">On Fri, Dec 4, 2009 at 8:38 PM, Ian Hickson <span dir="ltr"><<a href="mailto:ian@hixie.ch">ian@hixie.ch</a>></span> wrote:</span><br>

<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Fri, 4 Dec 2009, Fumitoshi Ukai (榈~\椋兼~V~G鎫U~O) wrote:<br>
> On Fri, Dec 4, 2009 at 10:55 AM, Ian Hickson <<a href="mailto:ian@hixie.ch">ian@hixie.ch</a>> wrote:<br>
> > On Wed, 2 Dec 2009, Alexey Proskuryakov wrote:<br>
> > ><br>
> > > Currently, the Web Sockets API spec says that the WebSocket.URL<br>
> > > attribute must just return a value that was passed to the WebSocket<br>
> > > constructor. This doesn't match how many other url accessors work,<br>
> > > and consequentially, it doesn't match what currently happens in<br>
> > > WebKit.<br>
> > ><br>
> > > I think it makes more sense to return a resolved URL - e.g. (new<br>
> > > WebSocket("ws://host/path/../")).URL would return "ws://host/".<br>
> ><br>
> > I've changed the spec to say that the .URL attribute must return the<br>
> > same string as is actually used by the protocol spec (i.e.<br>
> > post-resolve). Whether this does "../" resolution will depend on what<br>
> > the IRI specs end up saying when we switch to relying on those.<br>
><br>
> Should (new WebSocket("ws://host/path#frag")).URL be "ws://host/path"<br>
> rather than "ws://host/path#frag" ? It seems "Resolving Web addresses"<br>
> will drop fragment component according to<br>
> <a href="http://www.w3.org/html/wg/href/draft.html" target="_blank">http://www.w3.org/html/wg/href/draft.html</a>, but I'd like to confirm it.<br>
<br>
</div>I hadn't considered #fragment components. I've changed the spec to say<br>
that the constructor will throw an exception if one is present. ws: and<br>
wss: URLs can't have fragment identifiers in this version of the protocol.<br></blockquote><div><br></div><div>Ok.  I'll fix WebKit to follow the spec.</div><div><span class="Apple-style-span" style="-webkit-text-stroke: none; -webkit-transform-origin-z: 0px; -webkit-transform-style: 50%; ">Thanks!</span></div>

<div><span class="Apple-style-span" style="-webkit-text-stroke: none; -webkit-transform-origin-z: 0px; -webkit-transform-style: 50%; ">-- </span></div><div><span class="Apple-style-span" style="-webkit-text-stroke: none; -webkit-transform-origin-z: 0px; -webkit-transform-style: 50%; ">ukai</span></div>

<div><span class="Apple-style-span" style="-webkit-text-stroke: none; -webkit-transform-origin-z: 0px; -webkit-transform-style: 50%; "> </span></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">Ian Hickson               U+1047E                )\._.,--....,'``.    fL<br>
<a href="http://ln.hixie.ch/" target="_blank">http://ln.hixie.ch/</a>       U+263A                /,   _.. \   _\  ;`._ ,.<br>
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'</div></div></blockquote></div><br>