Re: [whatwg] Issue on drag drop example in specification?

2009-10-26 Thread Shumpei Shiraishi
Hi, Ian. I'm sorry for delay of replying and thanks for your post very much. Here you want to put the preventDefault() after the for() loop, so that it cancels the event only if the type was not found. Mmm, it seems my mistake about understanding the specification... For the example of

[whatwg] Example wrong in web workers

2009-10-26 Thread Simon Pieters
Web Workers has the following in some example (twice): // support being used as a shared worker as well as a dedicated worker if (this.onmessage) // dedicated worker This ought to be doing something like (typeof this.onmessage != 'undefined') , as the event property is presumably

Re: [whatwg] Example wrong in web workers

2009-10-26 Thread Anne van Kesteren
On Mon, 26 Oct 2009 13:57:10 +0100, Simon Pieters sim...@opera.com wrote: Web Workers has the following in some example (twice): // support being used as a shared worker as well as a dedicated worker if (this.onmessage) // dedicated worker This ought to be doing something like (typeof

Re: [whatwg] Example wrong in web workers

2009-10-26 Thread Drew Wilson
FWIW, I've usually looked at self.postMessage when trying to determine whether running in dedicated or shared worker context, although Anne's suggestion (using in) is better. -atw On Mon, Oct 26, 2009 at 7:00 AM, Anne van Kesteren ann...@opera.com wrote: On Mon, 26 Oct 2009 13:57:10 +0100,

[whatwg] sessionStorage and the Storage event

2009-10-26 Thread Honza Bambas
The spec says: When the |setItem() http://dev.w3.org/html5/webstorage/#dom-storage-setitem|, |removeItem() http://dev.w3.org/html5/webstorage/#dom-storage-removeitem|, and |clear() http://dev.w3.org/html5/webstorage/#dom-storage-clear| methods are called on a |Storage

Re: [whatwg] sessionStorage and the Storage event

2009-10-26 Thread Jonas Sicking
On Mon, Oct 26, 2009 at 4:06 PM, Honza Bambas hon...@allpeers.com wrote: The spec says: When the setItem(), removeItem(), and clear() methods are called on a Storage object x that is associated with a session storage area, if the methods did something, then in every HTMLDocument object whose

Re: [whatwg] Web Sockets API — send() with clos ed connections

2009-10-26 Thread Ian Hickson
On Sun, 25 Oct 2009, Avi Flax wrote: Just one thing struck me as odd: calling send(data) on a WebSocket whose readyState is CONNECTING raises an INVALID_STATE_ERR exception, but calling send(data) on a WebSocket whose readyState is CLOSED does not raise an exception; it merely returns