Template tag polyfill for IE 11 - not working with table tr and td

前端 未结 2 802
故里飘歌
故里飘歌 2021-01-14 04:29

I work with polyfill js that allows to process tags for browsers that does not support it.

Source code of polyfill on jsfiddle

Source question

But

2条回答
  •  -上瘾入骨i
    2021-01-14 04:53

    You can work your way around it if you really want to work with in templates in IE11.

    What you do is, instead of putting the directly in the templates, you put in an entire table like so

    
    

    This causes IE11 to no longer "correct" your HTML and return it as is. Once you cloned the HTML from the template, you can then extract the correctly out of the table and use it wherever it's needed.

提交回复
热议问题