What happens if I call .attr(attributeName, null)? Is the attribute removed?
<p>I want to conditionally add an attribute using jQuery:</p>

<pre><code>var $this = this
.append(...)
...

if (someCondition)
    this.attr(...)

return $this;
</code></pre>

<p>That single silly conditional attribute addition breaks the beauty of my chain of jQuery method invocations. However, this could be overcome if <code>.attr(someAttr, null)</code> deleted the attibute <code>someAttr</code>:</p>

<pre><code>return this
.append(...)
....
.attr(someAttr, someCondition ? someValue : null);
</code></pre>

<p>So the question is: Does <code>.attr(someAttr, null)</code> delete the attribute <code>someAttr</code>?</p>
