what is the solution to remove/add a class in pure javascript?
<p>Since <code>element.classList</code> is not supported in IE9 and Safari-5, what is the solution to remove/add a class in pure javascript?</p>

<p>No frameworks please.</p>

<p>Solution must work in at least IE9, Safari-5, FF4, Chrome and Opera 11.5</p>

<p>Related posts (but does not contain solution):</p>

<ol>
<li><p><a href="http://stackoverflow.com/questions/2170878/how-to-add-and-remove-css-class">how to add and remove css class</a></p></li>
<li><p><a href="http://stackoverflow.com/questions/5084182/add-and-remove-a-class-with-animation">Add and remove a class with animation</a></p></li>
<li><p><a href="http://stackoverflow.com/questions/3066692/add-remove-class">Add remove class?</a></p></li>
</ol>
