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.
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
classbe added to aliasclassName, andforto aliashtmlFor? The old names would be considered legacy.It's a minor thing, but it's polyfillable, and removes a weird inconsistency on the platform.