Firefox vs. IE: innerHTML handling

前端 未结 4 858
梦毁少年i
梦毁少年i 2021-01-18 07:16

After hours of debugging, it appears to me that in FireFox, the innerHTML of a DOM reflects what is actually in the markup, but in IE, the innerHTML reflects what\'s in the

4条回答
  •  梦毁少年i
    2021-01-18 07:20

    using a good library is a great way to get around browser inconsistencies, and jquery is the one that I typically recommend - and if you're running into issues altering the elements in a form in particular, jquery boasts a few really useful plugins focused specifically on form manipulation and evaluation.

提交回复
热议问题