i got this issue with html5 in ie8 (i know its not supported), i use HTML5 Shiv and DOCTYPE html
I got the issue that it will work when the page renders but when i do a ajax request and load (in my 开发者_JS百科case) a product it will ignore the html tags <figure>
and <section>
anybody got an idea why its like this? i try to find a solutions and html5 shiv and doctype was pretty much what i found.. im ok with a jquery solution if there is any.. any ideas?
im not sure if my markup will help any in this case but ill show it anyway
<figure>
<%= Html.ProductImageLinksThickbox("2", "1")%>
</figure>
this is the html that the browser renders
<figure/>
</figure/>
See this article: http://jdbartlett.github.com/innershiv/
It's not wholly clear from your question that this is what you are doing, but it looks similar.
Try this, might not work, but worth a try. json response:
r = {figure: 'bllalala'}// response as a json format that returns anything u wish as suppose to raw html.
$.ajax({
....
success: function(r){
$('#result').append($('<figure></figure>').html(r.figure))
}
....
})
my situation was so complex it was easier to change the html markup instead
EDIT
using this link that Alohci provided http://jdbartlett.com/innershiv/ can solve this problem using jquery to get elements that need to be html5, after the your parialview have rendered. i will update with code when i get the time and hope this is clear with i mean.
精彩评论