[webkit-dev] Constant readonly

Mario Bensi mbensi at connected-labs.com
Mon Nov 22 02:41:46 PST 2010


Hi,

I tested if the constant in idl was readonly, like that :

var node = document.getElementById('console');
alert(node.ELEMENT_NODE);
node.ELEMENT_NODE = 666;
alert(node.ELEMENT_NODE);

And it's strange, I can change ELEMENT_NODE value. 

I know it's stupid to do this but is it the correct behaviour ?

Regards,
Mario


More information about the webkit-dev mailing list