title: How to add class to element only if it already does not have it?
body: <p>How to add a class to an element only if it already does not have it? Say we don't know if the element has <code>class="desired_class ...</code> but we want to make sure it has.</p>