#77238placeholder attribute is only rendered if sword is empty
Description
The search form renders the placeholder HTML5 attribute only if the form is called/submitted without any search words.
Steps to reproduce
- submit search form with a search word
- empty search text input field without re-submitting the form
Current behaviour
Placeholder does not show unless search form is called without any search word.
Expected behaviour
Upon clearing the field, placeholder should immediately become visible on HTML5, i.e. placeholder attribute should be present regardless of whether sword is empty or not.
Solution
The required patch is trivial (just move placeholder marker definition out of empty condition) and will be attached or committed for review in a few minutes. Placeholders don’t seem to be used in TYPO3 8 any more, so the issue applies only to TYPO3 7 and below.