+ <p>The <code>.removeClass()</code> method manipulates the <code>className</code> <em>property</em> of the selected elements, not the <code>class</code> <em>attribute</em>. Once the property is changed, it's the browser that updates the attribute accordingly. This means that when the <code>class</code> attribute is updated and the last class name is removed, the browser may set the attribute's value to an empty string instead of removing the attribute completely. An implication of this behavior is that this method only works for documents with HTML DOM semantics (e.g., not pure XML documents).</p>
0 commit comments