From 9bfd968bed1a76888ec82e0f7b524a989d0e1108 Mon Sep 17 00:00:00 2001 From: Vipul A M Date: Mon, 9 May 2016 02:36:58 +0530 Subject: Confirm with the specification when generating emtpy option for select with `include_blank: true` option. We now generate option with empty label, example: `` for include_blank: true. This is only done, if content is missing on the option, and we providing the value from this option. Fixes #24816 --- actionview/CHANGELOG.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'actionview/CHANGELOG.md') diff --git a/actionview/CHANGELOG.md b/actionview/CHANGELOG.md index 1d7ec77e70..0b40699c77 100644 --- a/actionview/CHANGELOG.md +++ b/actionview/CHANGELOG.md @@ -1,2 +1,19 @@ +* `select_tag`'s `include_blank` option for generation for blank option tag, now adds an empty space label, + when the value as well as content for option tag are empty, so that we confirm with html specification. + Ref: https://www.w3.org/TR/html5/forms.html#the-option-element. + + Generation of option before: + + ```html + + ``` + + Generation of option after: + + ```html + + ``` + + *Vipul A M * Please check [5-0-stable](https://github.com/rails/rails/blob/5-0-stable/actionview/CHANGELOG.md) for previous changes. -- cgit v1.2.3