Simon Pieters wrote: > > 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. > > It'd be good if this was defined. > http://dev.w3.org/2006/webapi/Binding4DOM/#es-constants says the property has attributes { DontDelete }. That would imply that it doesn't have the ReadOnly attribute, and as such the assignment should be allowed.Received on Friday, 13 June 2008 02:37:37 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:42:57 GMT