Access <html> node
<p>I'd like to add a class to the <code>&lt;html&gt;</code> element and run the code for it in the <code>&lt;head&gt;</code> element. What's the best way to do that?</p>

<p><code>document.getElementsByTagName('html')[0].className = 'class';</code></p>

<p>or</p>

<p><code>document.documentElement.className = 'class';</code></p>
