]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Remove incorrect statement about the disabled attribute on <form> (#35713)
authorToby Zerner <toby.zerner@gmail.com>
Tue, 1 Feb 2022 06:40:59 +0000 (17:40 +1100)
committerGitHub <noreply@github.com>
Tue, 1 Feb 2022 06:40:59 +0000 (08:40 +0200)
> You can disable every form element within a form with the `disabled` attribute on the `<form>`.

I really want to be mistaken, because this would be a very useful feature! But I don't believe it's true. I can't find anything about this on MDN Web Docs, and adding the `disabled` attribute to a `<form>` does nothing on any browser in my testing.

The `disabled` attribute on a `<fieldset>` does disable all descendant form controls – perhaps that's where the mixup has come from.

site/content/docs/5.1/forms/layout.md

index 47e2f8ab7bc82d19208d070cca4f2b4859121476..21423040e4128ad0102f150c18623f4ec034e3ef 100644 (file)
@@ -12,7 +12,6 @@ Every group of form fields should reside in a `<form>` element. Bootstrap provid
 
 - New to browser forms? Consider reviewing [the MDN form docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form) for an overview and complete list of available attributes.
 - `<button>`s within a `<form>` default to `type="submit"`, so strive to be specific and always include a `type`.
-- You can disable every form element within a form with the `disabled` attribute on the `<form>`.
 
 Since Bootstrap applies `display: block` and `width: 100%` to almost all our form controls, forms will by default stack vertically. Additional classes can be used to vary this layout on a per-form basis.