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

前端 未结 5 1144
鱼传尺愫
鱼传尺愫 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 01:53

    I ran into this issue, too. The solution seems to be to use innerHTML on an element that's already attached to the document, then extract the created nodes. I created this li'l function to do that:

    http://jdbartlett.github.com/innershiv/

提交回复
热议问题