Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How well is insertAdjacentHTML supported?

Tags:

javascript

I recently discovered the insertAdjacentHTML method and it's a god-send. Being such I wanted to know how well this method is supported. Does IE have it? What about Chrome?

like image 659
David G Avatar asked Sep 08 '11 00:09

David G


1 Answers

I highly recommend this article by John Resing - http://ejohn.org/blog/dom-insertadjacenthtml/

Basically, it works on IE since IE4, and it is going to be a part of HTML5. There are also few limitations on which HTML elements you want to call this code on.

like image 151
rochal Avatar answered Nov 15 '22 16:11

rochal