How to “enable” HTML5 elements in IE 8 that were inserted by AJAX call?


To enable HTML5 elements in IE, you need to use plugins like html5shiv. The HTML5 Shiv enables use of HTML5 sectioning elements in legacy Internet Explorer and provides basic HTML5 styling for Internet Explorer 6-9,

With that, you can also use document.createElement to create an element.

var demo = document.createElement("demo");

demo.innerHTML = "Working!";
document.appendChild(demo);

Updated on: 27-Jan-2020

144 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements