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

[WebIDL] Assigning to constants

From: Simon Pieters <simonp@opera.com>
Date: Thu, 12 Jun 2008 18:01:16 +0200
To: public-webapps@w3.org
Message-ID: <op.ucm74edoidj3kv@zcorpandell.linkoping.osa>

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.

Simon Pieters
Opera Software
Received on Thursday, 12 June 2008 16:01:58 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:09 UTC