[whatwg] global object in onmessage event? Really?
ian at hixie.ch
Wed Mar 17 16:51:01 PDT 2010
On Sat, 13 Feb 2010, David Flanagan wrote:
> Section 9.2.3, step 5 reads:
> > Create an event that uses the MessageEvent interface, with the event
> > name message, which does not bubble, is not cancelable, and has no
> > default action. The data attribute must be set to the value of message
> > clone, the origin attribute must be set to the Unicode serialization
> > of the origin of the script that invoked the method, and the source
> > attribute must be set to the script's global object.
> Is the source property really supposed to be the global object and not
> the WindowProxy object? I thought that the point of WindowProxy was
> that you were *never* supposed to be able to obtain a reference to the
> real global object.
Good catch. Thanks. Fixed.
(BTW, please name sections and steps rather than giving their numbers. The
numbers change all the time and as there are multiple versions of the
specs with different section numbers for the same text, it's unclear what
section a number references.)
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg