aFarkas / html5shiv

This script is the defacto way to enable use of HTML5 sectioning elements in legacy Internet Explorer.
http://paulirish.com/2011/the-history-of-the-html5-shiv/
9.89k stars 2.56k forks source link

The cloneNode problem #158

Open matthewp opened 10 years ago

matthewp commented 10 years ago

The documentation mentions a cloneNode problem that I think I'm running into, but doesn't say what the problem is. Could you update the documentation to expand on this: 1) What is the cloneNode problem, 2) Why doesn't html5shiv address it and 3) Are there any possible workarounds that people can do to fix the problem (even if not performantly)? Thanks a lot.

The cloneNode problem is currently not addressed by HTML5 Shiv. HTML5 elements can be dynamically created, but can't be cloned in all cases.
watson28 commented 9 years ago

you can use Jquery.clone instead of cloneNode