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

Restore boolean attribute treatment from 3.x #504

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

Restore boolean attribute treatment from 3.x #504

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

Comments

@mgol
Copy link
Member

mgol commented Mar 18, 2024

See jquery/api.jquery.com#1243 & jquery/jquery#5452 for changes planned for 4.0. We should restore special boolean attributes treatment and warn if the setter is used with an unrecognized value. In the getter, warn if the value is different than the lowercased attribute name.

Remember to go through the list of boolean attributes in the spec and exempt any new values (like until-found for the hidden attribute) from such a conversion. New attributes should not be added to the list but any changes in existing ones will need to be accounted for.

@mgol
Copy link
Member Author

mgol commented Mar 25, 2024

I have this work in progress but I'm pausing it for now to focus on other priorities; I'll return to this before the jQuery 4.0.0 RC.

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

No branches or pull requests

1 participant