Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-13503

Labels tags don't have for attribute

    XMLWordPrintable

Details

    Description

      For accessibility reasons, "label" tags should have an attribute "for" with the id of the input field associated, example :

      <label for="ezcoa-183_name">Titre <span class="required">(required)</span>:</label>
      <input id="ezcoa-183_name" class="box ezcc-weblog ezcca-weblog_name" size="70" name="ContentObjectAttribute_ezstring_data_text_215486" value="" type="text">
      

      With this code, clicking on the label gives the focus to the input field. This behaviour is also very practical for all users.

      Attachments

        Activity

          People

            andre1 andre1
            dpobel dpobel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: