W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2010

[whatwg] global object in onmessage event? Really?

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 17 Mar 2010 23:51:01 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1003172339140.13402@ps20323.dreamhostps.com>
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.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 17 March 2010 16:51:01 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:21 UTC