W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2008

Re: [WebIDL] Assigning to constants

From: Cameron McCormack <cam@mcc.id.au>
Date: Mon, 16 Jun 2008 21:02:05 +1000
To: public-webapps@w3.org
Message-ID: <20080616110204.GA2385@arc.mcc.id.au>

Simon Pieters:
> What should happen when you assign something to a constant? e.g.:
>
>    Node.ELEMENT_NODE = 'Hello world';
>
> Web IDL doesn't say, AFAICT. Firefox and Opera allow the assignment. In  
> WebKit it silently fails. I had expected an exception to be thrown, just  
> like for readonly attributes.

Changed to be { DontDelete, ReadOnly } (but still no exception thrown).

  http://dev.w3.org/cvsweb/2006/webapi/Binding4DOM/Overview.html.diff?r1=1.76&r2=1.77&f=h

-- 
Cameron McCormack ≝ http://mcc.id.au/
Received on Monday, 16 June 2008 11:02:49 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:25 GMT