Skip to content

attr: Document attr(key, null) to remove attribute #853

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion entries/attr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ The title of the emphasis is:<div></div>
<argument name="value">
<type name="String"/>
<type name="Number"/>
<desc>A value to set for the attribute.</desc>
<type name="Null"/>
<desc>A value to set for the attribute. If <code>null</code>, the specified attribute will be removed (as in <a href="/removeAttr/"><code>.removeAttr()</code></a>).</desc>
</argument>
</signature>
<signature>
Expand Down
3 changes: 3 additions & 0 deletions pages/Types.html
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,9 @@ <h2 id="PlainObject"> PlainObject </h2>
jQuery.isPlainObject( o ); // true
</code></pre>

<h2 id="Null">Null</h2>
<p>The <code>null</code> keyword is a JavaScript literal that is commonly used to express the absence of an intentional value.</p>

<h2 id="Date"> Date </h2>
<p>The Date type is a JavaScript object that represents a single moment in time. Date objects are instantiated using their constructor function, which by default creates an object that represents the current date and time.
</p>
Expand Down