TinyMCE is not selecting elements in IE11
<p>I have written a plugin for TinyMCE that will replace itself with content generated from its attributes.  This is working fine in Chrome and FF, however it not working in IE11.  </p>

<p>When I process the document to find the custom tag and replace it with the generated content, I use <code>editor.selection.select(element)</code>.  This fails to select the element in IE11.  </p>

<p>JSFiddle: <a href="https://jsfiddle.net/bpstoxin/bsz69zcv/1/" rel="nofollow">https://jsfiddle.net/bpstoxin/bsz69zcv/1/</a></p>

<p>Code Excerpt</p>

<pre><code>            tinymce.each(editor.dom.select(tagName, node), function(element) {
                if (element.parentNode) {
                    editor.selection.select(element);
                    editor.selection.setContent(element.getAttribute('data-contents'));
                }
            });
</code></pre>

<p>Since the element is not getting selected, the content is being inserted into the top of the document instead of replacing my custom tag.</p>

<p>Is this a bug with TinyMce, or am I doing something wrong?  Keep in mind, this is a scaled down version of my plugin to demonstrate the problem. </p>