[whatwg] Web Sockets URL

Alexey Proskuryakov ap at webkit.org
Wed Dec 2 12:04:38 PST 2009


Currently, the Web Sockets API spec says that the WebSocket.URL  
attribute must just return a value that was passed to the WebSocket  
constructor. This doesn't match how many other url accessors work, and  
consequentially, it doesn't match what currently happens in WebKit.

I think it makes more sense to return a resolved URL - e.g. (new  
WebSocket("ws://host/path/../")).URL would return "ws://host/".

- WBR, Alexey Proskuryakov




More information about the whatwg mailing list