padolsey/findAndReplaceDOMText — pull request #3 by lukaszfiszer (2012-08-30 11:20:29+00:00)
Title: issue with HTML5 tags in IE 7/8

If we want to use an HTML5 tag (like ````) as a wrapping node, the result will be broken in IE 7/8 due to ``cloneNode()`` inside the ``_genReplacer`` function. IE has a buggy interpretation of this method and returns ``<:mark>`` instead (even with html5shim script enabled) - see http://bugs.jquery.com/ticket/6485 as as ref.

The bugs affects both ways of passing a node into the findAndReplaceDOMText function - as a node name and as a stenilNode.

The solution is to clone the node manually, like here http://pastie.org/935834

Pull request attached