Skip to content

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
@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