jQuery, html5, append()/appendTo() and IE

前端 未结 5 1129
鱼传尺愫
鱼传尺愫 2021-02-02 01:17

How to replicate:

  1. Create an html5 page.

  2. Make sure you have the script from remysharp.com/2009/01/07/html5-enabling-script/ added so that IE wi

5条回答
  •  深忆病人
    2021-02-02 02:13

    Hold your horses on the sarcasm there, everybody. Peeking at http://html5shiv.googlecode.com/svn/trunk/html5.js, the html5 shiv does successfully trick IE6/7 into doing a createElement().

    In karbassi's case above, one would hope IE6/7 would first pay attention to the html5 shiv, then perform the jQuery append() as expected every time after that. It apparently doesn't do things in that order when appending to an append. This is handy to know.

提交回复
热议问题