-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Labels
Description
https://dom.spec.whatwg.org/#dom-element-classname
https://html.spec.whatwg.org/multipage/forms.html#dom-label-htmlfor
I assume these were originally given unusual and inconsistent names to avoid reserved words, but it isn't an issue with modern JavaScript.
Could class be added to alias className, and for to alias htmlFor? The old names would be considered legacy.
It's a minor thing, but it's polyfillable, and removes a weird inconsistency on the platform.
simonknittel, joshwcomeau, Anuovec, kleinfreund, JawsomeJason and 140 moreyhdgms1, silas229, BillyWM, uhbif19, subframe7536 and 2 morebathos and ycmjasonGpx, anthony-dandrea, joshua-bn, dgrcode, cesalberca and 55 morehaltcase and ycmjason