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

core / user_menu: aria-label attribute is not well supported on a div without role attribute

    XMLWordPrintable

Details

    Description

      Steps to reproduce:

      1. Open the user menu -> Language selector
      2. Inspect the <div> containing language selector

      Expected behaviour:

      The <div>-element does not contain an aria-label attribute without also having a role-attribute.

      Current behaviour:

      The <div> have an aria-label attribute containing "Language selector". It does not have a role-attribute.

      Why this is important:

      As stated in the w3-documentation, <div> elements are not allowed to have the aria-label attribute without also specifying a role.

      https://www.w3.org/TR/html-aria/#docconformance-naming

      Attachments

        1. 400.png
          400.png
          242 kB
        2. 401.png
          401.png
          297 kB
        3. master.png
          master.png
          270 kB
        4. mdl77318.png
          mdl77318.png
          545 kB

        Activity

          People

            audunlillekjendlie_udir Audun Lillekjendlie
            audunlillekjendlie_udir Audun Lillekjendlie
            Paul Holden Paul Holden
            Jake Dallimore Jake Dallimore
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 32 minutes
                32m

                Clockify

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.