我在
HTML5中制作了一个模板,该模板与Chrome和Firefox一起使用,但没有使用Internet Explorer(在IE 8上测试过).
我怎么解决这个问题?
解决方法
我推荐你Neovov的polyfill:
https://github.com/neovov/template-element-polyfill
https://github.com/neovov/template-element-polyfill
注意:IE 11中存在一个错误:它移动< template>在< body>下在渲染DOM之前的元素!所以parentNode属性是错误的,嵌套将失败.您可以在[F12]工具中看到它.