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

AjaxWeb DevelopmentFront End ScriptsJavascript

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);
raja
Published on 05-Apr-2018 14:19:21
Advertisements