1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionview/test/template
Jonathan Hefner e6950a332a Add label attribute to <option> from include_blank
The `:include_blank` option of various `<select>`-related helpers causes
an `<option>` element with no content to be rendered.  However, the
[HTML spec] says that unless an `<option>` element has a `label`
attribute (which must be non-empty), its content must be "Text that is
not inter-element whitespace."

In #24923, this issue was addressed for `select_tag` by adding a `label`
attribute to the `<option>`.  This commit addresses the issue in the
same manner for `FormBuilder#select` and various date / time select
helpers.

[HTML spec]: https://html.spec.whatwg.org/multipage/form-elements.html#the-option-element
2020-07-24 15:45:18 -05:00
..
erb Allow Erubi bufvar to be configured 2020-05-21 15:22:51 -05:00
form_helper
testing
active_model_helper_test.rb
asset_tag_helper_test.rb
atom_feed_helper_test.rb
capture_helper_test.rb
compiled_templates_test.rb
controller_helper_test.rb
csp_helper_test.rb
csrf_helper_test.rb
date_helper_i18n_test.rb
date_helper_test.rb Add label attribute to <option> from include_blank 2020-07-24 15:45:18 -05:00
dependency_tracker_test.rb Ignore interpolated strings in DependencyTracker 2020-04-27 10:10:45 -07:00
digestor_test.rb
erb_util_test.rb
fallback_file_system_resolver_test.rb Deprecate rendering templates with . in the name 2020-05-05 23:21:17 -07:00
file_system_resolver_test.rb
form_collections_helper_test.rb
form_helper_test.rb
form_options_helper_i18n_test.rb
form_options_helper_test.rb Add label attribute to <option> from include_blank 2020-07-24 15:45:18 -05:00
form_tag_helper_test.rb
html_test.rb
javascript_helper_test.rb Fix possible XSS vector in JS escape helper 2020-03-19 09:48:08 -07:00
log_subscriber_test.rb add additional instrumentation block for ActionView layout rendering 2020-05-01 19:15:54 -07:00
lookup_context_test.rb Mostly remove bad test 2020-02-24 16:20:33 -08:00
number_helper_test.rb
optimized_file_system_resolver_test.rb
output_safety_helper_test.rb
partial_iteration_test.rb fix require 2020-02-27 14:12:09 -08:00
record_identifier_test.rb
render_test.rb Add test for HTML format fallback from JS template 2020-05-29 22:07:17 +01:00
resolver_cache_test.rb
resolver_patterns_test.rb
resolver_shared_tests.rb Introduce Resolver::PathParser 2020-05-19 18:55:10 -07:00
sanitize_helper_test.rb
streaming_render_test.rb
tag_helper_test.rb Update boolean attributes for actionview tag helper 2020-02-24 10:23:30 -05:00
template_error_test.rb
template_test.rb Remove redundant @virtual_path variable 2020-05-26 15:53:11 -04:00
test_case_test.rb Fix helper_method in ActionView::TestCase to allow keyword arguments 2020-02-28 04:46:05 +09:00
test_test.rb
text_helper_test.rb
text_test.rb
translation_helper_test.rb Fix translate method with default: nil 2020-02-09 23:22:00 +01:00
url_helper_test.rb