Skip to content

issue with HTML5 tags in IE 7/8 #3

merged 1 commit into from Aug 30, 2012

2 participants


If we want to use an HTML5 tag (like <mark>) 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 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

Pull request attached

@padolsey padolsey merged commit a13388a into padolsey:master Aug 30, 2012

Thanks for the bug report and the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.