- From: Cameron McCormack <cam@mcc.id.au>
- Date: Wed, 15 Jun 2011 19:12:59 +1200
- To: David Flanagan <dflanagan@mozilla.com>
- Cc: www-dom@w3.org
David Flanagan: > The Document.createEvent() method is specified with an argument > named "interface". When mechanically translated into JavaScript, > this causes a syntax error, since "interface" is a reserved word in > JavaScript. (And presumably in WebIDL, as well). Yeah, you would really need to write Event createEvent(in DOMString _interface); to avoid a Web IDL syntax error, where the leading underscore is used as an escape: http://dev.w3.org/2006/webapi/WebIDL/#idl-names (There’s no requirement for the argument name in the IDL to be the same as the name of the argument in the implementation, though, so I think it would be safe to to write it as “_interface” there.) -- Cameron McCormack ≝ http://mcc.id.au/
Received on Wednesday, 15 June 2011 07:13:37 UTC