html5shiv icon indicating copy to clipboard operation
html5shiv copied to clipboard

Jquery().clone() and append()

Open arbixy opened this issue 12 years ago • 4 comments

Please have some tests with jQuery-append method and IE8, there are cases when the appended node doesn't shiv. My last issue was with .clone() and then .append() Till now updating to last version of html5shiv was helpful.

arbixy avatar Sep 13 '12 15:09 arbixy

could you put a reduced example of this somewhere?

chee avatar Nov 29 '12 12:11 chee

Here is a small example that fails with in IE8 using hmtl5shiv-3.6.2 and jQuery-1.8.3.

This works:

$('<div><figure></figure></div>').html() -> '<figure></figure>'

This should give the same result as above, but doesn't:

$('<div><figure></figure></div>').clone().html() -> '<:figure></:figure>'

durko avatar Mar 28 '13 18:03 durko

maybe it helps to put an   in the figure.

ytsurk avatar Mar 28 '13 20:03 ytsurk

The behaviour does not depend on the content of the figure. I chose an empty figure as an example for brevity. Another example with the same problems:

<figure>
    <img src='/some/image'>
    <figcaption>Some text</figcaption>
</figure>

durko avatar Mar 28 '13 21:03 durko