Re: [WebIDL] Assigning to constants

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 UTC