How can I detect DOM ready and add a class without jQuery?
<p>I want to rewrite this line without using jQuery so it can be applied quicker (and before the downloading of the jQuery library). The line is...</p>

<pre><code>$(document).ready(function() { $('body').addClass('javascript'); });
</code></pre>

<p>If I added it to the <code>html</code> element instead, would I be able to leave off the DOM ready part? One problem with this though is the validator doesn't like the class attribute on the <code>html</code> element, even if it is inserted with JS.</p>

<p>So, how would I rewrite that without jQuery?</p>
