innerShiv: Make innerHTML + HTML5 Work in IE
(Various Shivs)
Via JD Bartlett comes HTML5 innerShiv for IE. Before innerShiv, the following would not work in IE:
PLAIN TEXT
HTML:
var s = document.createElement(’div’);
s.innerHTML = "<section>Hi!</section>";
document.body.appendChild(s);
For example, let’s imagine we have some CSS that defines the following for the HTML5 elements footer, header, and section:
PLAIN TEXT
CSS:
footer, header, section {
border:1px solid #ccc;
display:block;
padding:10px;
}
Unfortunately, even if [...]