This came up in an email thread recently where WebKit apparently makes DOM constants (i.e. Node.ELEMENT_NODE etc) be readonly properties and Firefox and IE do not. Seems there's no reason for this, and constants should be constant, so we should fix this. Probably too late to fix for Firefox 4 though.
Created attachment 495017 [details] [diff] [review] Fix.
Johnny, did you lose track of this bug?
This needs some tests.
(In reply to :Ms2ger from comment #4) > I'll get some tests imported in bug 647323. That didn't work out, but I'm getting them in bug 765177. I'll land this patch when I push that.