S
S
Sergey2012-02-28 10:48:28
JavaScript
Sergey, 2012-02-28 10:48:28

HTML5, IE7 and jQuery?

Actually there was a very big problem on one of the projects. One of the sections of the site is dynamically rebuilt using jQuery. The whole problem is that HTML5 elements are used in the markup. Before changing the page with jQuery everything looks fine (thanks to html5shiv) but after manipulating the DOM (jQuery's append method) all HTML5 tags turn into <:figure> format strings and so on. As a result, the layout shatters to smithereens.
It seems to be an innerHTML problem but as far as I know a fix for this problem is already included in html5shiv. Perhaps someone faced similar problems?

You can’t change the markup, as well as score on IE7

Answer the question

In order to leave comments, you need to log in

5 answer(s)
C
CKOPOBAPKuH, 2012-02-28
@CKOPOBAPKuH

sections
by means
elements
are known

I
ibooj, 2012-02-28
@ibooj

Well, I don’t understand people who upgraded from ie6 to ie7, but don’t upgrade to ie8)))

A
Arthur Koch, 2012-02-28
@dudeonthehorse

Grammar Nazis are indignant;) The man honestly wrote that he was a half-genius.
But on business. I've never had a strange problem, although I actively use html5shiv.

M
MT, 2012-02-29
@MTonly

What version of jQuery? jQuery 1.7 has fixed this issue .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question