W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2011

[DOMCore] argument name "interface" in Document.createEvent()

From: David Flanagan <dflanagan@mozilla.com>
Date: Wed, 15 Jun 2011 00:04:02 -0700
Message-ID: <4DF85962.6040708@mozilla.com>
To: www-dom@w3.org
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).

How about changing it to eventInterfaceName?

     David
Received on Wednesday, 15 June 2011 07:04:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:07 GMT