Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue with HTML5 tags in IE 7/8 #3

Merged
merged 1 commit into from
Aug 30, 2012
Merged

issue with HTML5 tags in IE 7/8 #3

merged 1 commit into from
Aug 30, 2012

Conversation

lukaszfiszer
Copy link
Contributor

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
Copy link
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants