HTML and CSS Reference
ers, it won't cause them any harm. However, you might wish
to give your page a speed optimisation and only download
and execute this script in IE by surrounding it with condi-
tional comments (see http://dev.opera.com/articles/view/
NoTE The <script>
element no longer requires
you to specify the type of script;
default. This works on legacy
browsers also so you can use it
Alternatively, you can use Remy's tiny HTML5-enabling script
http://remysharp.com/2009/01/07/html5-enabling-script/ that will per-
form this for all new elements in one fell swoop, and which also includes
ensures that HTML5 elements also appear styled correctly when print-
ing documents in IE.
rate security policy, will be able to access your content but will
see a partially styled or unstyled page. This may or may not be
has such a miserable web experience, your website is unlikely
to be the worst they encounter.) Simon Pieters has shown
that, if you know what the DOM looks like, you can style some
maintainable; see “Styling HTML5 markup in IE without script”
Other legacy browser problems
There are other legacy browser problems when styling HTML5.
Older versions of Firefox (prior to version 3) and Camino (before
version 2) had a bug that http://html5doctor.com/how-to-
get-html5-working-in-ie-and-irefox-2/ has dealt with.
We don't propose to compose an exhaustive list of these
behaviours; they are temporary problems that we expect to
quickly disappear as new browser versions come out and users
upgrade to them.