Skip to content
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

Document changes in boolean attributes treatment #1243

Open
mgol opened this issue Mar 18, 2024 · 1 comment
Open

Document changes in boolean attributes treatment #1243

mgol opened this issue Mar 18, 2024 · 1 comment
Milestone

Comments

@mgol
Copy link
Member

mgol commented Mar 18, 2024

See jquery/jquery#5452

@gibson042
Copy link
Member

The table in .attr( attributeName ) will need a new row for 4.0+, and .attr( attributeName, value ) will need updates to document the acceptability of a false value and its removal behavior which is similar to null behavior except with "aria-" attributes.

Proposed text for the latter:

Note: because ARIA attributes frequently associate behavior with "false" values that differs from attribute absence, passing false as the value for an attribute whose name starts with "aria-…" will stringify that value to "false" rather than remove the attribute. To guarantee removal of an attribute, provide null as the value or use the .removeAttr() method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants