Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-70829

ARIA role presentation conflicts with the empty alt

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_310_STABLE
    • Story Points:
      1

      Description

      The markup <img role="presentation" alt="alt text"> is contradictory.

      According to https://www.w3.org/TR/2017/WD-wai-aria-practices-1.1-20170628/examples/presentation/PresentationRoleExamples.html, it is recommended that authors instead use empty alt text (alt="") where they use role="presentation".

      There are places such as blocks/recentlyaccesseditems/templates/no-items.mustache and course/templates/no-courses.mustache that are using 'role="presentation"' with non-empty alt.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              rezaie9 Shamim Rezaie
              Participants:
              Component watchers:
              Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: