IE8でHTML5とjQueryの相性が悪い? (途中)
※途中です。とりあえずここまでうp。
HTML :
<section id="hoge"><div>XXX</div></section>
document.createElement('section'); $(function() { alert([ $('#hoge').html(), // ok $('section').html(), // ok $('#hoge').clone().html(), // empty $('<section><div>XXX</div></section>').html(), // empty '---', $('#hoge').length, // 1 $('section').length, // 1 $('#hoge').clone().length, // 1 $('<section><div>XXX</div></section>').length, // 3 '---', $('#hoge').children().length, // 1 $('section').children().length, // 1 $('#hoge').clone().children().length, // 0 $('<section><div>XXX</div></section>').children().length, // 0 ].join('\n')); });