Object doesn't support property or method 'createContextualFragment'
I use a rich-text editor on my site, and received this JavaScript error when trying to view it on IE9. An easy solution exists, however, which I found in a discussion thread; simply add the following lines of code at the top of your file or before the method where you use createContextualFragment which makes it available to the Range object via prototyping.
if ((typeof Range !== 'undefined') && !Range.prototype.createContextualFragment) { Range.prototype.createContextualFragment = function(html) { var frag = document.createDocumentFragment(); var div = document.createElement('div'); frag.appendChild(div); div.outerHTML = html; return frag; }; }