W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2010

Configurable, writable "const" values?

From: Travis Leithead <Travis.Leithead@microsoft.com>
Date: Wed, 1 Dec 2010 20:32:23 +0000
To: Cameron McCormack <cam@mcc.id.au>, "public-script-coord@w3.org" <public-script-coord@w3.org>
CC: "Jonas Sicking (jonas@sicking.cc)" <jonas@sicking.cc>, Maciej Stachowiak <mjs@apple.com>
Message-ID: <9768D477C67135458BF978A45BCF9B38262DBD@TK5EX14MBXW605.wingroup.windeploy.ntdev.microsoft.com>
I was reviewing browser Interop for the following scenario, and want to get your take on the matter (because some recent W3C test submissions are exercising these assumptions and IE is considering changing our implementation): 

var original = Node.ELEMENT_NODE;
Node.ELEMENT_NODE = "ten";
var check = Node.ELEMENT_NODE;
if (original !== check)
    alert("const properties aren't constant");
    alert("const properties can't be written");

Tested__      Result__
WebIDL        not writable
Opera         not writable
IE9           writable
FF4           writable
Chrome7       not writable
Safari5       not writable

Any objections if IE9 changes to not writable? I presume FF would also eventually change? Is there a web compatibility reason for not doing this?

Received on Wednesday, 1 December 2010 20:32:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:02 UTC