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

Add for and class aliases for htmlFor and className #10630

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Psychpsyo
Copy link

@Psychpsyo Psychpsyo commented Sep 17, 2024

This adds for as an alias for htmlFor to be
more consistent and intuitive. This is now possible since 'for' is no longer a globally reserved word
in Javascript.
It also updates one example to match the new
'class' alias for 'className' from the DOM spec.

fixes #9379

(still working on this checklist)

(See WHATWG Working Mode: Changes for more details.)


/acknowledgements.html ( diff )
/form-elements.html ( diff )
/forms.html ( diff )
/nav-history-apis.html ( diff )

This adds for as an alias for htmlFor to be
more consistent and intuitive. This is now possible
since 'for' is no longer a globally reserved word
in Javascript.
It also updates one example to match the new
'class' alias for 'className' from the DOM spec.

fixes whatwg#9379
@Psychpsyo Psychpsyo marked this pull request as draft September 17, 2024 11:07
@Psychpsyo Psychpsyo changed the title Add htmlFor and className aliases Add for and class aliases for htmlFor and className Sep 17, 2024
source Outdated Show resolved Hide resolved
@Psychpsyo Psychpsyo marked this pull request as ready for review September 17, 2024 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Add class & for aliases for className and htmlFor
2 participants