[whatwg] A suggestion, if postMessage becomes async

Anne van Kesteren annevk at opera.com
Wed Apr 23 00:23:05 PDT 2008

On Wed, 23 Apr 2008 02:38:05 +0200, Jeff Walden <jwalden+whatwg at MIT.EDU>  
> Make the targetOrigin argument non-optional.  "*" would mean "don't  
> care" while anything else would specify an origin (or result in a syntax  
> error).  If this is done,  it's no longer possible to have  
> time-of-check/time-of-use issues (in the async case) without the web  
> developer explicitly choosing to do so.  This change shouldn't be any  
> more than 5-10 lines, and fixing existing testcases to adjust for this  
> change is straightforward.

How is omitting the argument any less explicit than providing a "*" as  
argument? I would prefer we keep that part of the API as is.

Anne van Kesteren

More information about the whatwg mailing list