jquery / jquery-migrate

A development tool to help migrate away from APIs and features that have been or will be removed from jQuery core
Other
2.02k stars 470 forks source link

Restore boolean attribute treatment from 3.x #504

Open mgol opened 7 months ago

mgol commented 7 months ago

See https://github.com/jquery/api.jquery.com/issues/1243 & https://github.com/jquery/jquery/pull/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 commented 7 months ago

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.

mgol commented 3 weeks ago

PR: #540