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

Jquery().clone() and append() #77

Open
arbixy opened this issue Sep 13, 2012 · 4 comments
Open

Jquery().clone() and append() #77

arbixy opened this issue Sep 13, 2012 · 4 comments

Comments

@arbixy
Copy link

arbixy commented Sep 13, 2012

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.

@chee
Copy link

chee commented Nov 29, 2012

could you put a reduced example of this somewhere?

@durko
Copy link

durko commented Mar 28, 2013

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

@ytsurk
Copy link

ytsurk commented Mar 28, 2013

maybe it helps to put an   in the figure.

@durko
Copy link

durko commented Mar 28, 2013

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>

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

No branches or pull requests

4 participants