Original Post
I'm not quite sure if this is the right place for asking such a question, but I'll give it a shot. I've been experimenting with DOM Prototypes in Mozilla and here is what I wanted to do:
HTMLElement.prototype.getAttribute.call(element, 'id'); It gives me this exception: [Exception... "Illegal operation on WrappedNative prototype object" nsresult: "0x8057000c (NS_ERROR_XPC_BAD_OP_ON_WN_PROTO)"
location: "JS frame :: file:///[PATH REMOVED]/test.html :: onclick :: line 1" data: no] Has anyone tried that before? Any idea why I'm getting this exception? Here's an article about DOM Prototypes in Mozilla if you want to read more about them.