Summary: The "form" content attribute on <label> elements no longer means anything. .form returns the .form of the labeled control, or null if nothing is labeled or the labeled thing has no .form. In particular, you can no longer associate a label with one form but associate its labeled control with a different form.

Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1268852

Spec: https://github.com/whatwg/html/pull/1120 and https://html.spec.whatwg.org/multipage/forms.html#the-label-element and https://html.spec.whatwg.org/multipage/forms.html#dom-label-form

Estimated release: 49

devtools bug: none needed, I think.

Support in other browsers: Chrome is planning to do this. See <https://groups.google.com/a/chromium.org/d/msg/blink-dev/QWyCpJjgfY8/TOxG9n-OAQAJ>. According to that message, Edge and WebKit don't support the "form" content attribute on <label> anyway; .form always returns the ancestor form in those engines.

-Boris
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to