Polyfill (programming): Difference between revisions

Content deleted Content added
Fix punctuation.
Fix: footnote number goes after comma.
Line 21:
=== HTML5 Shiv ===
 
In IE versions prior to 9, unknown HTML elements like {{tag|section|o}} and {{tag|nav|o}} would be parsed as empty elements, breaking the page's nesting structure and making those elements impossible to style using [[CSS]]. One of the most widely used polyfills, html5shiv,{{efn|The use of the term ''shiv'' here is a pun or mistake on ''shim.''<ref name="introducing276"/>}}, exploits another quirk of IE to work around this bug: calling <code>document.createElement("tagname")</code> for each of the new HTML5 elements, which causes IE to parse them correctly. It also includes basic default styling for those HTML5 elements.
 
=== -prefix-free ===