jonrohan/ZeroClipboard — pull request #19 by jonrohan (2012-12-12 08:55:59+00:00)
Title: "Object doesn't support this property or method" error in IE8

Hi guys, it's nice to know that someone is working in ZeroClipboard again :).

In my particular case, I've been using the latest version of ZeroClipboard in Chrome, Firefox and IE9 without any problems. But in IE8 I receive this error:

Message: Unknown runtime error
Line: 3 Char: 2436 Code: 0
URI: http://myapp.com/ZeroClipboard.min.js

The "glue" method breaks. The final lines say:

appendElem.appendChild(this.div);
this.div.innerHTML = this.getHTML( box.width, box.height );

I researched about IE8 and appending nodes, and it seems that for IE8 is recommended to assign the innerhtml first and then append the element. I updated the order of these lines, and it worked fine (so at some point please consider taking a look at it :D). But the second time I copied something I've received the following error:

Message: Object doesn't support this property or method
Line: 3 Char: 5430 Code: 0
URI: http://myapp.com/ZeroClipboard.min.js

It seems to be an old bug: http://code.google.com/p/zeroclipboard/issues/detail?id=39

If I can help you with something please let me know. And if I find the fix I will let you know.

Thanks!