Skip to content

issue with HTML5 tags in IE 7/8 #3

Merged
merged 1 commit into from Aug 30, 2012

2 participants

@lukaszfiszer

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 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

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

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.