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 secti

[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 'null'

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 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 this.onmessage !=

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 wrote: > On Mon, 26 Oct 2009 13:57:10 +0100, Simon Pieters >

[whatwg] sessionStorage and the Storage event

2009-10-26 Thread Honza Bambas
The spec says: "When the |setItem() |, |removeItem() |, and |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 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 Window > objec

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

Re: [whatwg] HTMLElement.onload

2009-10-26 Thread Ian Hickson
On Sun, 25 Oct 2009, Markus Ernst wrote: > > The spec says in 3.2.3: "The following event handler content attributes > may be specified on any HTML element" - with my quite trivial > understanding, I would actually expect something to happen if I do this. > The note "The attributes marked with