W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2008

[whatwg] A suggestion, if postMessage becomes async

From: Jeff Walden <jwalden+whatwg@MIT.EDU>
Date: Wed, 23 Apr 2008 04:28:59 -0400
Message-ID: <480EF34B.3070007@mit.edu>
Anne van Kesteren wrote:
> 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.

It's far easier to forget to provide the origin than it is to accidentally provide "*".  If you omit an origin with this API, one way or another you're going to get an exception (either a syntax error or a not-enough-arguments error, depending on how DOM bindings work in the browser).

Received on Wednesday, 23 April 2008 01:28:59 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:40 UTC