time is passing and HTML5 is spreading more and more. It has even reached the CMSimple world: at least three of the active template providers are publishing templates with the HTML5 Doctype. I foresee that plugins and editors using resp. supporting new HTML5 elements will follow over time (well, actually there are already at least one plugin and one editor).
But there's a problem: IE < 9 (which has a very high market share) doesn't support those new HTML5 elements---they cannot be styled. Fortunately there's a solution (at least if JS is enabled): HTML5 Shiv. So I suppose plugins and end-users to make use of it in the near future (if not even yet). This could easily lead to multiple inclusion of the script. I don't expect the same problems as with jQuery (where multiple inclusion doesn't only waste resources, but will wipe out already defined jQuery plugins), but it might nonetheless be a good idea to develop a plugin[1] and declare this as recommended way to use HTML5 Shiv for CMSimple.
What do you think about it?
[1]
The plugin could consist of a single init.php (+ the HTML5 Shiv scripts + the boilerplate):
Code: Select all
<?php
$hjs .= '<!--[if lt IE 9]><script src="' . $pth['folder']['plugins']
. 'html5shiv/html5shiv' . ($print ? 'printshiv' : '')
. '.js"></script><![endif]-->';
?>
Code: Select all
include_once $pth['folder']['plugins'] . 'html5shiv/init.php';