To ensure that all form elements are accessible, we need a mechanism to ensure that #title is set up for all the form elements that should use it, so that defining that form element without using #title is not possible.
Instead of validating only #title in form_builder(), it has been proposed to create an abstracted "Property Validation API" that can be used to verify that all the required properties of a certain element have been set properly.
This patch will add the "property validation API" and will implement it for the #title property.
In @Sun suggested that a mechanism be put in place to ensure that all form fields have a #title.
the proper fix for D8 is to additionally require a non-empty #title for all form elements via form_builder(), throwing an exception or error message if one without is encountered, so as to ensure that every form is accessible.
EDIT: That is, because Form API is not able to throw a form validation error for a form element without #title. You simply see the same form, without any error message.(http://drupal.org/node/882694#comment-3513452)
|FAILED: [[SimpleTest]]: [MySQL] 58,707 pass(es), 44 fail(s), and 1 exception(s).|
|PASSED: [[SimpleTest]]: [MySQL] 58,315 pass(es).|
|PASSED: [[SimpleTest]]: [MySQL] 58,477 pass(es).|