Issue Bug Closed

#77238placeholder attribute is only rendered if sword is empty

Daniel Neugebauer 07/25/16, 12:51 updated 10/02/18, 11:09

Description

The search form renders the placeholder HTML5 attribute only if the form is called/submitted without any search words.

Steps to reproduce

  1. submit search form with a search word
  2. 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.

Reviews 1